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 sh means in linux?
How do you access partitions under linux?
What is the root account?
Compare linux credit based algorithm with other scheduling algorithms?
Enlist the basic components of LINUX?
Does nasa use linux?
How would you create a text file without opening it?
How do you check for processes started by user ‘pat’?
What is curl in linux?
Why linux is more secure?
how would you find the logged user details in linux?
How do I put games on playonlinux?
what is difference between lilo and grub in linux operating system?
Are semaphores atomic?
How will you restrict ip so that the restricted ip’s may not use the ftp server?