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 secured is linux? Explain.
Compare linux with windows?
What does grep() stand for?
How is linux more secure compared to other operating systems?
Why do hackers prefer linux?
Can linux get viruses?
How to enable root logging in ubuntu?
What linux do hackers use?
Can a linux docker container run on windows?
If a volume group named vg0 already exists and we need to extend this volume group up to 4gb. How will you do it?
What is posix in linux?
You want to search for sale and sales. What regular expression should you use?
Is bsd a posix?
Is everything in linux a file?
What is a shell program in linux?