sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Arjan Bouter (f7a98d0bdd38b3d13f2a1719b7611a1dbf56f7f9)
- From: Arjan Bouter <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Arjan Bouter (f7a98d0bdd38b3d13f2a1719b7611a1dbf56f7f9)
- Date: Mon, 30 Aug 2010 18:06:16 -0500
GIT changes to master grimoire by Arjan Bouter <abouter AT sourcemage.org>:
chat-im/prosody/HISTORY | 3 +++
chat-im/prosody/init.d/smgl-prosody | 23 +++++++++++++++++++++++
2 files changed, 26 insertions(+)
New commits:
commit 52d4181b24588207fef66cdfdc8cd89cf4937509
Author: Arjan Bouter <abouter AT sourcemage.org>
Commit: Arjan Bouter <abouter AT sourcemage.org>
prosody: corrected init script
diff --git a/chat-im/prosody/HISTORY b/chat-im/prosody/HISTORY
index 8801480..8af8daa 100644
--- a/chat-im/prosody/HISTORY
+++ b/chat-im/prosody/HISTORY
@@ -1,3 +1,6 @@
+2010-08-31 Arjan Bouter <abouter AT sourcemage.org>
+ * init.d/smgl-prosody: fixed init script
+
2010-07-14 Arjan Bouter <abouter AT sourcemage.org>
* prosody.log: removed
diff --git a/chat-im/prosody/init.d/smgl-prosody
b/chat-im/prosody/init.d/smgl-prosody
index a142a00..bb601a4 100644
--- a/chat-im/prosody/init.d/smgl-prosody
+++ b/chat-im/prosody/init.d/smgl-prosody
@@ -1,7 +1,30 @@
#!/bin/bash
PROGRAM="/usr/bin/prosody"
+ARGS="start"
RUNLEVEL=3
NEEDS="+remote_fs +network"
. /etc/init.d/smgl_init
+
+start() {
+ echo -n "Starting Prosody..."
+ su -s /bin/bash -c "/usr/bin/prosodyctl start"
+ evaluate_retval
+}
+
+stop() {
+ echo -n "Stopping Prosody..."
+ su -s /bin/bash -c "/usr/bin/prosodyctl stop"
+ evaluate_retval
+}
+
+restart() {
+ echo -n "Restarting Prosody..."
+ su -s /bin/bash -c "/usr/bin/prosodyctl restart"
+ evaluate_retval
+}
+
+status() {
+ su -s /bin/bash -c "/usr/bin/prosodyctl status"
+}
- [SM-Commit] GIT changes to master grimoire by Arjan Bouter (f7a98d0bdd38b3d13f2a1719b7611a1dbf56f7f9), Arjan Bouter, 08/30/2010
Archive powered by MHonArc 2.6.24.