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
Which linux os is best?
Will linux run windows programs?
What is nfs? What is its job?
How documentation of an application is stored?
What is mutex in linux?
What is the structure of linux?
What is CLI?
Who owns linux?
how do you list and flush all ip tables in linux?
Which supports for creating a Linux VPN (Virtual Private Network)?
Write a bash script to delete all the files in the current directory that contains the word “linux”.
How do you execute a file in linux?
How can you enhance the security of password file?
What is timestamp of a file in linux?
Is windows faster than linux?