Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
tools
>
transmission2
> transmission-daemon.init
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File transmission-daemon.init of Package transmission2
#!/bin/sh # # ### BEGIN INIT INFO # Provides: transmission-daemon # Required-Start: $network $remote_fs # Required-Stop: $network $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Start the transmission BitTorrent daemon client # Description: Start the transmission BitTorrent daemon client ### END INIT INFO # TRANSMISSION_BIN=/usr/bin/transmission-daemon test -x $TRANSMISSION_BIN || { echo "$TRANSMISSION_BIN not installed"; if [ "$1" = "stop" ]; then exit 0; else exit 5; fi; } TRANSMISSION_CONFIG=/etc/sysconfig/transmission-daemon test -r $TRANSMISSION_CONFIG || { echo "$TRANSMISSION_CONFIG not existing"; if [ "$1" = "stop" ]; then exit 0; else exit 6; fi; } . $TRANSMISSION_CONFIG . /etc/rc.status rc_reset case "$1" in start) echo -n "Starting Transmission daemon " /sbin/startproc -u $DAEMON_USER $TRANSMISSION_BIN $DAEMON_ARGS rc_status -v ;; stop) echo -n "Shutting down Transmission daemon " /sbin/killproc -TERM $TRANSMISSION_BIN rc_status -v ;; restart) $0 stop $0 start rc_status ;; status) echo -n "Checking for service Transmission daemon " /sbin/checkproc $TRANSMISSION_BIN rc_status -v ;; *) echo "Usage: $0 {start|stop|status|restart}" exit 1 ;; esac rc_exit