Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
gnump3d
gnump3d.init
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnump3d.init of Package gnump3d
#! /bin/sh # Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany. # All rights reserved. # # Author: Thorsten Kukuk <http://www.suse.de/feedback> # # /etc/init.d/gnump3d # # and symbolic its link # # /usr/sbin/rcgnump3d # # LSB compliant service control script; see http://www.linuxbase.org/spec/ # # System startup script for the GNU MP3 Streaming Server # ### BEGIN INIT INFO # Provides: mp3d # Required-Start: $network $remote_fs $syslog # Required-Stop: $network $remote_fs $syslog # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Start the GNU MP3 Streaming Server # Description: GNU mp3d is a simple server allows you to stream # MP3's and OGG Vorbis files across a network. ### END INIT INFO # Check for missing binaries (stale symlinks should not happen) MP3D_BIN=/usr/bin/gnump3d test -x $MP3D_BIN || exit 5 . /etc/rc.status # First reset status of this service rc_reset case "$1" in start) echo -n "Starting GNUMP3d" startproc $MP3D_BIN --background rc_status -v ;; stop) echo -n "Shutting down GNUMP3d" killproc -TERM $MP3D_BIN rc_status -v ;; try-restart) $0 status >/dev/null && $0 restart rc_status ;; restart) $0 stop $0 start rc_status ;; force-reload) echo -n "Reload service GNUMP3d" killproc -HUP $MP3D_BIN rc_status -v ;; reload) echo -n "Reload service GNUMP3d" killproc -HUP $MP3D_BIN rc_status -v ;; status) echo -n "Checking for service GNUMP3d: " # Return value is slightly different for the status command: # 0 - service running # 1 - service dead, but /var/run/ pid file exists # 2 - service dead, but /var/lock/ lock file exists # 3 - service not running checkproc $MP3D_BIN rc_status -v ;; probe) test /etc/gnump3d/gnump3d.conf -nt /var/run/gnump3d.pid && echo restart ;; *) echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}" exit 1 ;; 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