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

How do I see processes in linux?

0 Answers  


How much disk space does linux need?

0 Answers  


You have set quotas for all your users but half of your users are using more space than they have been allotted. Which of the following could be the problem?

0 Answers  


How can we see the boot messages?

0 Answers  


How do I open a profile in linux?

0 Answers  






which are the configuration files associate with dns server and client in linux operating system?

0 Answers   Arigo Infotech,


How do I kill an application in linux?

0 Answers  


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

0 Answers  


How to copy files to a floppy disk safely?

0 Answers  


Explain how to color the git console?

0 Answers  


Please explain the file structure of linux?

2 Answers   Capstocks and Securities, TCS,


Why was linux created?

0 Answers  


Categories