I want to shutdown the application, when system is going down, where will mention

Answer Posted / manavalan

Create service script in SysV init runlevel(Boot Time).

Sample Script,

#!/bin/sh
#
# /etc/init.d/mysystem
# Subsystem file for "MySystem" server
#
# chkconfig: 2345 95 05
# description: MySystem server daemon

processname: MySystem
config: /etc/MySystem/mySystem.conf
config: /etc/sysconfig/mySystem
pidfile: /var/run/MySystem.pid
# source function library
. /etc/rc.d/init.d/functions
# pull in sysconfig settings
[ -f /etc/sysconfig/mySystem ] && . /etc/sysconfig/mySystem
RETVAL=0
prog="MySystem"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to switch to a previously used directory?

472


Which antivirus is best for linux?

427


what is an mx record in linux?

534


What is used to search files for specified words or patterns?

517


Do I need antivirus on linux mint?

439






How to unzip a file in Linux?

485


Explain the term cli?

570


Name the linux loader.

512


What is the purpose of online help?

475


How to find difference in two configuration files on the same server?

469


Can I use linux on mac?

429


What is login shell in linux?

461


Torvalds, wrote most of the linux kernel in c++ programming language, do you agree?

524


What are the types of processes in linux?

459


Hi All we are porting are application from linux 2.4 to 2.6 .Please let me know what kind of manual balck box testing we can use to test application and how.

1591