ALT Linux Bugzilla
– Attachment 1681 Details for
Bug 10284
отсутствие init-скрипта
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
инит-скрипт
watchdog (text/plain), 1.05 KB, created by
Konstantin Pavlov
on 2006-11-17 17:33:16 MSK
(
hide
)
Description:
инит-скрипт
Filename:
MIME Type:
Creator:
Konstantin Pavlov
Created:
2006-11-17 17:33:16 MSK
Size:
1.05 KB
patch
obsolete
>#!/bin/sh ># ># Init file for Software Watchdog daemon. ># ># Written by Dag Wieers <dag@wieers.com>. ># Rewrote for ALT Linux by Pavlov Konstantin <thresh@altlinux.ru> ># ># chkconfig: 2345 02 98 ># description: Software Watchdog Daemon ># ># processname: watchdog ># config: /etc//watchdog.conf ># pidfile: /var/run/watchdog.pid > >WITHOUT_RC_COMPAT=1 > >. /etc/init.d/functions > >### Default variables > >RETVAL=0 >PIDFILE=/var/run/watchdog.pid >LOCKFILE=/var/lock/subsys/watchdog > >start() { > start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- watchdog > RETVAL=$? > return $RETVAL >} > >stop() { > stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root watchdog > RETVAL=$? > return $RETVAL >} > >restart() { > stop > start >} > >case "$1" in > start) > start > ;; > stop) > stop > ;; > restart|reload) > restart > ;; > condrestart) > [ -e $LOCKFILE ] && restart > RETVAL=$? > ;; > status) > status --pidfile "$PIDFILE" --expect-user root watchdog > RETVAL=$? > ;; > *) > echo $"Usage: $0 {start|stop|restart|condrestart|status}" > RETVAL=1 > ;; >esac > >exit $RETVAL
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10284
: 1681