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 see processes in linux?
How much disk space does linux need?
You have set quotas for all your users but half of your users are using more space than they have been allotted. Which of the following could be the problem?
How can we see the boot messages?
How do I open a profile in linux?
which are the configuration files associate with dns server and client in linux operating system?
How do I kill an application in linux?
How to find difference in two configuration files on the same server?
How to copy files to a floppy disk safely?
Explain how to color the git console?
Please explain the file structure of linux?
2 Answers Capstocks and Securities, TCS,
Why was linux created?