diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-04 20:15:07 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-04 20:15:07 +0100 |
commit | a226edc3c6b2a7feb62aa39abc38bcda4e18770a (patch) | |
tree | ea7d4252c95e22460578603ff2e899d98179a7d6 /bin/updater/sysvinit | |
parent | 457453e5a15a81d8e1f03f09aebd5c6b75609b64 (diff) |
use full path for executable
Diffstat (limited to 'bin/updater/sysvinit')
-rwxr-xr-x | bin/updater/sysvinit/owncloud-news-updater | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/bin/updater/sysvinit/owncloud-news-updater b/bin/updater/sysvinit/owncloud-news-updater index 4e0f919aa..b3f58c01c 100755 --- a/bin/updater/sysvinit/owncloud-news-updater +++ b/bin/updater/sysvinit/owncloud-news-updater @@ -1,5 +1,5 @@ #!/bin/sh - + ### BEGIN INIT INFO # Provides: Owncloud News Update # Required-Start: $remote_fs $syslog @@ -9,22 +9,22 @@ # Short-Description: Owncloud News Custom Update script # Description: Owncloud News Custom Update script ### END INIT INFO - + # Change the next 3 lines to suit where you install your script and what you want to call it -DAEMON=owncloud-news-updater +DAEMON=/usr/local/bin/owncloud-news-updater DAEMON_NAME=owncloud-news-updater - + # Add any command line options for your Update Script here. I suggest loading an config file which holds user, pass etc. DAEMON_OPTS="--config /etc/owncloud/news/updater.ini" - + # This next line determines what user the script runs as. DAEMON_USER=nobody - + # The process ID of the script when it runs is stored here: PIDFILE=/var/run/$DAEMON_NAME.pid - + . /lib/lsb/init-functions - + do_start () { log_daemon_msg "Starting system $DAEMON_NAME daemon" start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile --user $DAEMON_USER --chuid $DAEMON_USER --startas $DAEMON -- $DAEMON_OPTS @@ -35,18 +35,18 @@ do_stop () { start-stop-daemon --stop --pidfile $PIDFILE --retry 10 log_end_msg $? } - + case "$1" in - + start|stop) do_${1} ;; - + restart|reload|force-reload) do_stop do_start ;; - + status) status_of_proc "$DAEMON_NAME" "$DAEMON" && exit 0 || exit $? ;; @@ -54,6 +54,6 @@ case "$1" in echo "Usage: /etc/init.d/$DAEMON_NAME {start|stop|restart|status}" exit 1 ;; - + esac exit 0 |