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

What is Samba? Why is it used?

0 Answers  


How do I stop a linux script from command line?

0 Answers  


How long has linux been around?

0 Answers  


What are symbolic links?

0 Answers  


What separates unix and linux?

0 Answers  






Is there chrome for linux?

0 Answers  


What is ssh? How to connect to a remote server via ssh?

0 Answers  


What are linux file systems?

0 Answers  


What is gnome linux?

0 Answers  


Can spinlock be interrupted?

0 Answers  


How do I see hidden files in linux?

0 Answers  


Which are the different modes of vi editor?

0 Answers  


Categories