[SM-Commit] GIT changes to master grimoire by Arjan Bouter (f7a98d0bdd38b3d13f2a1719b7611a1dbf56f7f9)

Arjan Bouter scm at sourcemage.org
Mon Aug 30 19:06:16 EDT 2010


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"
+}



More information about the SM-Commit mailing list