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 linux hotkeys do you know?
Why spinlocks are used?
Are linux and unix the same thing?
What does ctrl z do in linux?
What are the core components of linux?
How do you execute a file in linux?
How do I start apache in linux?
What is the purpose of linux operating system?
Does android studio run faster on linux?
how would you change the default o.s. Boot option with some interval say 30 seconds in linux?
Do most games run on linux?
Is learning linux worth it?
What daemon is responsible for tracking events on your system?
Explain regular expressions?
Where linux is used?