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 |
What is Samba? Why is it used?
How do I stop a linux script from command line?
How long has linux been around?
What are symbolic links?
What separates unix and linux?
Is there chrome for linux?
What is ssh? How to connect to a remote server via ssh?
What are linux file systems?
What is gnome linux?
Can spinlock be interrupted?
How do I see hidden files in linux?
Which are the different modes of vi editor?