I want to shutdown the application, when system is going down, where will mention
Answer Posted / 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 |
Post New Answer View All Answers
How to switch to a previously used directory?
Which antivirus is best for linux?
what is an mx record in linux?
What is used to search files for specified words or patterns?
Do I need antivirus on linux mint?
How to unzip a file in Linux?
Explain the term cli?
Name the linux loader.
What is the purpose of online help?
How to find difference in two configuration files on the same server?
Can I use linux on mac?
What is login shell in linux?
Torvalds, wrote most of the linux kernel in c++ programming language, do you agree?
What are the types of processes in linux?
Hi All we are porting are application from linux 2.4 to 2.6 .Please let me know what kind of manual balck box testing we can use to test application and how.