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 are the functions of a linux operating system?
Is mac a linux or darwin?
How do you start and stop a service?
What is $1 in linux?
Search for: how do I install linux?
how many types of user accounts are available in linux os? if i assign a uid below 500 to a normal user..wat wil be happened?
How do I search for files containing specific text in linux?
What is lilo how is it useful in linux?
Is linux kernel legal to edit linux kernel?
How can you login to another system in your network from your system?
How can we change speed and make full duplex settings for eth0?
What is semaphore and types?