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



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

Post New Answer

More Linux General Interview Questions

How do I find the ip address of a mac address in linux?

0 Answers  


How do I find usb devices on linux?

0 Answers  


Is linux mint free?

0 Answers  


Is it possible to reduce the size of a already created partition? If yes how......please post solution for me

8 Answers  


Is linux better than unix?

0 Answers  


Is freebsd based on linux?

0 Answers  


What is semaphore explain with example?

0 Answers  


What are the main diff bwn Yum & rpm?

5 Answers  


What are the partitions created on the mail server hard drive?

0 Answers  


Where is wget installed on linux?

0 Answers  


How kill stopped job in linux?

0 Answers  


cd home to get back to your home-directory. State Whether True or False?

0 Answers  


Categories