summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authordarkside40 <darkside401@googlemail.com>2014-12-04 16:18:00 +0100
committerdarkside40 <darkside401@googlemail.com>2014-12-04 16:18:00 +0100
commit0f6a81e0beb0778930105dee2138a73c37e91d2e (patch)
treeacc6d3e34883863075e9a9f2bfba822845024838 /bin
parenta06dbe76cf325fd40e8ffc624eec47b1a51c4427 (diff)
Fixed start command, script location etc.
also renamed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/updater/sysvinit/owncloud-news-updater (renamed from bin/updater/sysvinit/owncloud-news-update)11
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/updater/sysvinit/owncloud-news-update b/bin/updater/sysvinit/owncloud-news-updater
index 27142a2d0..19fbf022a 100755
--- a/bin/updater/sysvinit/owncloud-news-update
+++ b/bin/updater/sysvinit/owncloud-news-updater
@@ -11,12 +11,12 @@
### END INIT INFO
# Change the next 3 lines to suit where you install your script and what you want to call it
-DIR=/var/www/owncloud/apps/news/bin
+DIR=/usr/bin/owncloud-news-updater
DAEMON=$DIR/updater.py
-DAEMON_NAME=owncloud-news-update
+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 $DIR/config.ini"
+DAEMON_OPTS="--config /etc/owncloud/news/updater.ini"
# This next line determines what user the script runs as.
DAEMON_USER=nobody
@@ -28,7 +28,7 @@ PIDFILE=/var/run/$DAEMON_NAME.pid
do_start () {
log_daemon_msg "Starting system $DAEMON_NAME daemon"
- start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile --user $DAEMON_USER --$
+ start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile --user $DAEMON_USER --chuid $DAEMON_USER --startas $DAEMON -- $DAEMON_OPTS
log_end_msg $?
}
do_stop () {
@@ -36,7 +36,6 @@ do_stop () {
start-stop-daemon --stop --pidfile $PIDFILE --retry 10
log_end_msg $?
}
-
case "$1" in
@@ -58,4 +57,4 @@ case "$1" in
;;
esac
-exit 0 \ No newline at end of file
+exit 0