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 |
How do I find the ip address of a mac address in linux?
How do I find usb devices on linux?
Is linux mint free?
Is it possible to reduce the size of a already created partition? If yes how......please post solution for me
Is linux better than unix?
Is freebsd based on linux?
What is semaphore explain with example?
What are the main diff bwn Yum & rpm?
What are the partitions created on the mail server hard drive?
Where is wget installed on linux?
How kill stopped job in linux?
cd home to get back to your home-directory. State Whether True or False?