Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2
openhpi-subagent
openhpi-subagent-2.3.4_init_script.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openhpi-subagent-2.3.4_init_script.patch of Package openhpi-subagent
Index: openhpi-subagent.rc =================================================================== --- openhpi-subagent.rc.orig 2006-09-13 17:41:28.000000000 +0200 +++ openhpi-subagent.rc 2008-09-13 15:11:22.679791048 +0200 @@ -8,37 +8,33 @@ # ### BEGIN INIT INFO # Provides: hpiSubagent -# Required-Start: $network net-snmp -# X-UnitedLinux-Should-Start: network net-snmp -# Required-Stop: +# Required-Start: $network $remote_fs snmp +# Required-Stop: $network $remote_fs snmp # Default-Start: 3 5 # Default-Stop: # Description: init script for HPI SNMP Subagent ### END INIT INFO -isUnited=`grep "UnitedLinux" /etc/issue` -isSUSE=`grep "SuSE" /etc/issue` prog=/usr/bin/hpiSubagent # Enable forking OPTIONS="-f" -if [ "$isUnited" ] || [ "$isSUSE" ]; then - . /etc/rc.status - rc_reset +. /etc/rc.status +rc_reset - RETVAL=$rc_done +RETVAL=$rc_done - case "$1" in +case "$1" in start) echo -n "Starting up HPI SNMP sub-agent daemon " - startproc $prog $OPTIONS + startproc $prog $OPTIONS > /dev/null 2>&1 rc_status -v ;; stop) echo -n "Shutting down HPI SNMP sub-agent daemon " - killproc -TERM $proc + killproc -TERM $prog rc_status -v ;; try-restart) @@ -58,39 +54,5 @@ if [ "$isUnited" ] || [ "$isSUSE" ]; the echo "Usage: $0 {start|stop|status|try-restart|restart}" exit 1 ;; - esac - rc_exit -else - . /etc/rc.d/init.d/functions - RETVAL=0 - - # Red Hat/Turbo/Caldera - case "$1" in - start) - echo -n $"Starting up HPI SNMP sub-agent daemon: " - daemon $prog $OPTIONS - RETVAL=$? - echo - ;; - - stop) - echo -n $"Shutting down HPI SNMP sub-agent daemon: " - killproc $prog - RETVAL=$? - echo - ;; - status) - status $prog - RETVAL=$? - ;; - restart|reload) - $0 stop && $0 start - ;; - *) - echo "Usage: $0 {start|stop|status|restart|reload}" - exit 1 - esac - - exit $RETVAL - -fi +esac +rc_exit
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor