Difference between revisions of "Code sources - deluge.script source code"
From WikiDLXTV
(Created page with '#!/bin/sh DELUGECONFIG="$2" case "$1" in start) online.delayer 60 # pause until online add.webplugin deluge /etc/deluge/deluge deluged -c $DELUGECONFIG if [ "`grep -…') |
m |
||
Line 1: | Line 1: | ||
+ | <pre> | ||
#!/bin/sh | #!/bin/sh | ||
Line 21: | Line 22: | ||
;; | ;; | ||
esac | esac | ||
+ | </pre> |
Latest revision as of 14:27, 26 March 2010
#!/bin/sh DELUGECONFIG="$2" case "$1" in start) online.delayer 60 # pause until online add.webplugin deluge /etc/deluge/deluge deluged -c $DELUGECONFIG if [ "`grep -i \^DELUGEWEBUI=\'OFF\' /conf/config`" == "" ] ; then [ -w /var/www -a ! -d /var/www/deluge ] && ln -s $DELUGECONFIG /var/www/deluge sleep 3 && deluge -c $DELUGECONFIG -u web & fi ;; stop) [ "`pidof deluged`" != "" ] && killall deluged && sleep 5 [ "`pidof deluge`" != "" ] && killall deluge && sleep 5 ;; *) echo "Usage: $0 (start|stop)" ;; esac