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 do you understand by linux kernal?
Does windows run on linux?
What is the purpose of online help?
How to exit from vi editors?
How do you sort the entries in a text file in ascending order?
What is the first process in linux?
How shadow passwords are given?
How do I run a file in linux?
How do you create a new user account?
What does the immutable bit do to a file?
What is ld_library_path?
Does ios use linux kernel?
What is the tcp handshake?
What is a swap space?
What is linux and why it is used?