Tema: Re: HP Power Manager Server po Debian Squeeze
Autorius: Nerijus Kislauskas
Data: 2012-04-27 09:09:48
On 04/25/2012 02:47 PM, Zilvinas wrote:
> Laba diena,
> 
> 
> Po OS upgrade demono paleidimo skriptas dabar naudojamas kitame formate
> (jei neklystu insserv).
> 
> Gal kas jau sprendete toki dalyka ir galite pasidalinti skriptu ar
> patarimu?
> 
> Aciu

Pasidalinsiu patarimu.

/etc/init.d/skeleton:
#! /bin/sh
### BEGIN INIT INFO
# Provides:          skeleton
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Example initscript
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.
### END INIT INFO

# Author: Foo Bar <foobar@baz.org>
#
# Please remove the "Author" lines above and replace them
# with your own name if you copy and modify this script.


Komandos galėtų būti tokios:

# cp /etc/init.d/skeleton /etc/init.d/your_super_duper_init_script
# vi /etc/init.d/your_super_duper_init_script
# chmod +x /etc/init.d/your_super_duper_init_script
# insserv -v your_super_duper_init_script
--
Pagarbiai,