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 |
What is the purpose of the linux?
How do you do shell scripting in linux?
how you will block porn sites using squid proxy in linux operating system?
0 Answers SwanSoft Technologies,
How was linux developed?
How do I see processes in linux?
How to copy text to the clipboard?
What is called .scratch pad of computer.?
Search for: is windows 10 better than linux?
Is the address bus unidirectional?
How do you look at the contents of a file named sample.z?
Are semaphores atomic?
Is linux kernel legal to edit linux kernel?