I want to shutdown the application, when system is going down, where will mention
Answer / 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 |
How do you check which service is running on which port in linux?
Why mutex is faster than semaphore?
What are linux file systems?
What is shell script?
How do you kill a process?
How big should the swap-space partition be?
What are symbolic links?
In /etc/fstab, wat is the meaning of 'defaults' word and 0 0 indicates which options?
What is the full name of linux?
What is login shell in linux?
How do you check if a particular service in running?
What can I do with red hat linux?