From: Moritz Bunkus
Kopieren Sie die Datei
- scripts/boot/system-v/lx-office-task-server
- nach /etc/init.d/lx-office-task-server
. Passen
+ scripts/boot/system-v/kivitendo-server
+ nach /etc/init.d/kivitendo-server
. Passen
Sie in der kopierten Datei den Pfad zum Task-Server an (Zeile
DAEMON=....
). Binden Sie das Script in den
- Boot-Prozess ein. Dies ist distributionsabhängig:
Debian-basierende Systeme:
update-rc.d lx-office-task-server defaults + Boot-Prozess ein. Dies ist distributionsabhängig:
Debian-basierende Systeme:
update-rc.d kivitendo-task-server defaults # Nur bei Debian Squeeze und neuer: -insserv lx-office-task-serverOpenSuSE und Fedora Core:
chkconfig --add lx-office-task-serverDanach kann der Task-Server mit dem folgenden Befehl gestartet - werden: /etc/init.d/lx-office-task-server +insserv kivitendo-task-server
OpenSuSE und Fedora Core:
chkconfig --add kivitendo-task-server
Danach kann der Task-Server mit dem folgenden Befehl gestartet + werden: /etc/init.d/kivitendo-task-server start
Kopieren Sie die Datei
- scripts/boot/upstart/lx-office-task-server.conf
- nach /etc/init/lx-office-task-server.conf
.
+ scripts/boot/upstart/kivitendo-task-server.conf
+ nach /etc/init/kivitendo-task-server.conf
.
Passen Sie in der kopierten Datei den Pfad zum Task-Server an (Zeile
exec ....
).
Danach kann der Task-Server mit dem folgenden Befehl gestartet - werden: service lx-office-task-server + werden: service kivitendo-task-server start
Der Task-Server wird wie folgt kontrolliert:
./scripts/task_server.pl Befehl
Befehl
ist dabei eine der folgenden
diff --git a/scripts/boot/system-v/kivitendo-task-server b/scripts/boot/system-v/kivitendo-task-server
new file mode 100755
index 000000000..cab569610
--- /dev/null
+++ b/scripts/boot/system-v/kivitendo-task-server
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides: kivitendo-task-server
+# Required-Start: $local_fs $remote_fs $network $syslog $named
+# Required-Stop: $local_fs $remote_fs $network $syslog $named
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# X-Interactive: true
+# Short-Description: Start/stop the Kivitendo task server
+### END INIT INFO
+
+set -e
+
+# Change this to point to the Kivitendo "task_server.pl" location.
+DAEMON="/opt/kivitendo/scripts/task_server.pl"
+TOPIC="Kivitendo task server"
+
+if [ ! -x $DAEMON ] ; then
+ echo "$TOPIC executable not found"
+ exit 1
+fi
+
+case $1 in
+ start)
+ echo "Starting the $TOPIC"
+ $DAEMON start
+ ;;
+ stop)
+ echo "Stopping the $TOPIC"
+ $DAEMON stop
+ ;;
+ restart)
+ echo "Restarting the $TOPIC"
+ $DAEMON restart
+ ;;
+ status)
+ if $DAEMON status > /dev/null 2> /dev/null; then
+ echo "The $TOPIC is running"
+ else
+ echo "The $TOPIC is not running"
+ exit 1
+ fi
+ ;;
+ *)
+ echo "Usage: /etc/init.d/kivitendo-task-server {start|stop|reload|status}"
+ exit 1
+ ;;
+esac
diff --git a/scripts/boot/system-v/lx-office-task-server b/scripts/boot/system-v/lx-office-task-server
deleted file mode 100755
index 1beb1d84c..000000000
--- a/scripts/boot/system-v/lx-office-task-server
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-### BEGIN INIT INFO
-# Provides: lx-office-task-server
-# Required-Start: $local_fs $remote_fs $network $syslog $named
-# Required-Stop: $local_fs $remote_fs $network $syslog $named
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# X-Interactive: true
-# Short-Description: Start/stop the Lx-Office task server
-### END INIT INFO
-
-set -e
-
-# Change this to point to the Lx-Office "task_server.pl" location.
-DAEMON="/opt/lx-office/scripts/task_server.pl"
-TOPIC="Lx-Office task server"
-
-if [ ! -x $DAEMON ] ; then
- echo "$TOPIC executable not found"
- exit 1
-fi
-
-case $1 in
- start)
- echo "Starting the $TOPIC"
- $DAEMON start
- ;;
- stop)
- echo "Stopping the $TOPIC"
- $DAEMON stop
- ;;
- restart)
- echo "Restarting the $TOPIC"
- $DAEMON restart
- ;;
- status)
- if $DAEMON status > /dev/null 2> /dev/null; then
- echo "The $TOPIC is running"
- else
- echo "The $TOPIC is not running"
- exit 1
- fi
- ;;
- *)
- echo "Usage: /etc/init.d/lx-office-task-server {start|stop|reload|status}"
- exit 1
- ;;
-esac
diff --git a/scripts/boot/upstart/kivitendo-task-server.conf b/scripts/boot/upstart/kivitendo-task-server.conf
new file mode 100644
index 000000000..b3666dba0
--- /dev/null
+++ b/scripts/boot/upstart/kivitendo-task-server.conf
@@ -0,0 +1,11 @@
+# kivitendo-task-server - Task server for Kivitendo
+
+description "Kivitendo task server"
+
+start on runlevel [2345]
+stop on runlevel [!2345]
+
+respawn
+
+# Adjust path
+exec /opt/kivitendo/scripts/task_server.pl -f start
diff --git a/scripts/boot/upstart/lx-office-task-server.conf b/scripts/boot/upstart/lx-office-task-server.conf
deleted file mode 100644
index fa00ba22a..000000000
--- a/scripts/boot/upstart/lx-office-task-server.conf
+++ /dev/null
@@ -1,12 +0,0 @@
-# lx-office-task-server - Task server for Lx-Office
-
-description "Lx-Office task server"
-
-start on runlevel [2345]
-stop on runlevel [!2345]
-
-respawn
-
-# Adjust path
-exec /opt/lx-office/scripts/task_server.pl -f start
-