From a226edc3c6b2a7feb62aa39abc38bcda4e18770a Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 4 Dec 2014 20:15:07 +0100 Subject: use full path for executable --- bin/updater/sysvinit/owncloud-news-updater | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3