Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 7284 Details for
Bug 13889
Update init scripts / process(es) to include at least some LSB functionality
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
init script for mynetwatchman perl agent
mnwclient.init (text/plain), 1.44 KB, created by
Guy
on 2003-01-13 22:25:11 UTC
(
hide
)
Description:
init script for mynetwatchman perl agent
Filename:
MIME Type:
Creator:
Guy
Created:
2003-01-13 22:25:11 UTC
Size:
1.44 KB
patch
obsolete
>#!/bin/bash ># $Id: mnwclient.init,v 1.9 2002/01/13 17:22:03 wagnerch Exp $ ># ># mnwclient This shell script takes care of starting and stopping ># myNetWatchman Perl Agent. ># ># chkconfig: 2345 86 12 ># description: mnwclient > >PATH=/usr/bin:/sbin:/bin:/usr/sbin >export PATH > ># Source function library. >. /etc/rc.d/init.d/functions > ># Source networking configuration. >. /etc/sysconfig/network > ># Check that networking is up. >[ ${NETWORKING} = "no" ] && exit 0 > ># check if the mnwclient.rc file is present >[ -f /etc/mnwclient.rc ] || exit 0 > ># check to see if mnwclient exists >[ -f /usr/sbin/mnwclient ] || exit 0 > >case "$1" in >start) > echo -n "Starting myNetWatchman Agent: " > pidlist=`pidofproc mnwclient` > pid= > for apid in $pidlist ; do > [ -d /proc/$apid ] && pid="$pid $apid" > done > > [ -n "$pid" ] && ps h $pid >/dev/null 2>&1 && exit 0 > > /usr/sbin/mnwclient & > RETVAL=$? > if [ $RETVAL -eq 0 ]; then > echo $! >/var/run/mnwclient.pid > success "mnwclient startup" > echo > touch /var/lock/subsys/mnwclient > else > echo_failure > fi > ;; > >stop) > echo -n "Stopping myNetWatchman Agent: " > killproc mnwclient > RETVAL=$? > if [ $RETVAL -eq 0 ] ; then > rm -f /var/lock/subsys/mnwclient > echo > else > echo > fi > ;; > >restart) > $0 stop > $0 start > ;; > >status) > status mnwclient > ;; > >*) > echo "Usage: $0 {start|stop|restart}" > exit 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 13889
: 7284