idok-commit AT lists.psi.ch
Subject: Commit emails of the iDok project
List archive
- From: "AFS account Florian Huebner" <huebner AT savannah.psi.ch>
- To: idok-commit AT lists.psi.ch
- Subject: [idok-commit] idok commit r218 - trunk/sites/psi/oodaemon
- Date: Thu, 18 Sep 2008 12:12:34 +0200
- List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
- List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>
Author: huebner
Date: Thu Sep 18 12:12:34 2008
New Revision: 218
Log:
added the script for /etc/init.d/
Added:
trunk/sites/psi/oodaemon/oodaemon.sh (contents, props changed)
Added: trunk/sites/psi/oodaemon/oodaemon.sh
==============================================================================
--- (empty file)
+++ trunk/sites/psi/oodaemon/oodaemon.sh Thu Sep 18 12:12:34 2008
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+start() {
+ cd /home/oodaemon/ood/scripts
+ sudo -u oodaemon nohup ./DaemonDebug.sh > output.file &
+
+}
+stop() {
+ cd /home/oodaemon/ood/scripts
+ sudo -u oodaemon nohup ./AdminStop.sh
+ sudo -u oodaemon nohup ./killAllOpenOffice.sh
+}
+
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ *)
+ echo $"Usage: $prog {start|stop}"
+ exit 1
+esac
+
+exit $RETVAL
+~
+
\ No newline at end of file
- [idok-commit] idok commit r218 - trunk/sites/psi/oodaemon, AFS account Florian Huebner, 09/18/2008
Archive powered by MHonArc 2.6.19.