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 |
Explain the features of stateless linux server?
What are the advantages of arch linux?
What is the linux kernel?
How to color the git console?
Is unix different from linux?
Do you need antivirus with linux?
what has the greater market share of Linux SW/HW?
What is the use of a symbolic link in linux?
What is Samba? Why is it used?
What are system calls in linux?
How can you view a file?
What is the difference between kill, pkill, and killall?