Skip to content

Instantly share code, notes, and snippets.

@meeDamian
Created April 4, 2012 14:55
Show Gist options
  • Save meeDamian/2302193 to your computer and use it in GitHub Desktop.
Save meeDamian/2302193 to your computer and use it in GitHub Desktop.
#!/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