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 are different types of linux?
Is ios based on bsd?
What is pthread_mutex_t in c?
What is gnu stands for in linux?
Can you watch netflix on linux mint?
Is learning linux worth it?
What are the modes used in vi editor?
What is the difference between linux and unix?
What is the difference between ‘apt’ and ‘yum’?
How to enable acls for /home partition?
How kill stopped job in linux?
What is the difference between linux and android?