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 does ls -r do?
What is dracut in linux?
How much usable space is available, when a Linux system is configured with a RAID 5 array that consists of six 20 GB hard disk drives?
How big should the swap-space partition be?
Will linux run windows programs?
What is a profile file in linux?
How linux is better than windows?
Hi, We are porting our application from linux 2.4 to 2.6.Its an medical equipment.So just want to know how could i perform balck box testing on this.Please let me know the scenarios as well.
What is bash?
What linus torvalds created?
Is linux safe from viruses?
What is the command to make a file executable in linux?