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
What is Synchronization? What is Mutex? Explain the Reader Writer Problem
What are the kinds of permissions under linux?
What is shell script?
How to setup password less remote login/ssh?
What is nfs? What is its job?
Search for: how do I install linux?
How to display or kill all processes which are accessing any folder/file?
How to exit from vi editors?
What are system calls in linux?
What do you understand by root account?
Define hcmos?
What can you do with arch linux?
How do we store an application’s documentation?
What's the difference between unix and linux?
Has linux ever been hacked?