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



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

Post New Answer

More Linux General Interview Questions

Where does the name yellow dog come from?

0 Answers  


How check if port is open linux?

0 Answers  


What is unity linux?

0 Answers  


What is called .scratch pad of computer.?

0 Answers  


How do I find usb devices on linux?

0 Answers  






How do you avoid deadlock while coding?

0 Answers  


Is linux better than windows for gaming?

0 Answers  


What is a shell in linux?

0 Answers  


What is linux and why it is used?

0 Answers  


What is mutex and semaphore?

0 Answers  


What is the difference between ext2 vs ext3 vs ext4?

0 Answers  


What are the significance of semaphores what are the different types of semaphores?

0 Answers  


Categories