Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which linux os is best?

828


Will linux run windows programs?

838


What is nfs? What is its job?

831


How documentation of an application is stored?

833


What is mutex in linux?

880


What is the structure of linux?

902


What is CLI?

818


Who owns linux?

780


how do you list and flush all ip tables in linux?

804


Which supports for creating a Linux VPN (Virtual Private Network)?

918


Write a bash script to delete all the files in the current directory that contains the word “linux”.

834


How do you execute a file in linux?

942


How can you enhance the security of password file?

969


What is timestamp of a file in linux?

864


Is windows faster than linux?

795