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 |
Where does the name yellow dog come from?
How check if port is open linux?
What is unity linux?
What is called .scratch pad of computer.?
How do I find usb devices on linux?
How do you avoid deadlock while coding?
Is linux better than windows for gaming?
What is a shell in linux?
What is linux and why it is used?
What is mutex and semaphore?
What is the difference between ext2 vs ext3 vs ext4?
What are the significance of semaphores what are the different types of semaphores?