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 |
Is it legal to edit linux kernel?
When you create a new partition, you need to designate its size by defining the starting and ending?
What is semaphore with example?
Do hackers use linux?
which are the configuration files associate with dns server and client in linux operating system?
Is freenas linux?
How do you switch from one desktop environment to another, such as switching from kde to gnome?
Is it possible to reduce the size of a already created partition? If yes how......please post solution for me
Is arch linux hard to use?
What is bsd in linux?
What is the use of dollar sign in linux?
What is wait () and notify () in multithreading?