Created
April 4, 2012 14:55
-
-
Save meeDamian/2302193 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh /etc/rc.common | |
| START=91 | |
| COMPYTH="python /root/pyLoad/pyLoadCore.py --configdir=/root/.pyload" | |
| EXTRA_COMMANDS="status" | |
| start() { | |
| # echo "Starting PyLoad" | |
| $COMPYTH --daemon | |
| } | |
| status() { | |
| # echo -n "Status of PyLoad: " | |
| STATUS=$($COMPYTH --status) | |
| if [[ $STATUS = "false" ]]; then | |
| echo "Not running" | |
| else | |
| echo "Running as PID $STATUS" | |
| fi | |
| } | |
| stop() { | |
| # echo "Stopping PyLoad" | |
| $COMPYTH --quit | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment