Permalink
Browse files

Apply comments from ajacoutot@

  • Loading branch information...
viq committed Jan 22, 2012
1 parent b50828a commit 0796fe70de3c4d6fd8164de5b10487b8caa37456
Showing with 5 additions and 8 deletions.
  1. +4 −4 net/prosody/pkg/README
  2. +1 −4 net/prosody/pkg/prosody.rc
View
@@ -19,16 +19,16 @@ Using Prosody in an OpenBSD environment
2) Prosody includes an rc script for starting and stopping. You can
start it by running:
- # ${SYSCONFDIR}/rc.d/prosody start
+ # /etc/rc.d/prosody start
You can have it start automatically on boot by adding prosody to your
- pkg_scripts line in ${SYSCONFDIR}/rc.conf.local
+ pkg_scripts line in /etc/rc.conf.local
3) Prosody comes with prosodyctl script for controlling the daemon. Run
it without parameters to get list of commands:
- # ${PREFIX}/sbin/prosodyctl
+ # ${TRUEPREFIX}/sbin/prosodyctl
For example, to add users you would use something like:
- # ${PREFIX}/sbin/prosodyctl adduser username@domain.tld
+ # ${TRUEPREFIX}/sbin/prosodyctl adduser username@domain.tld
@@ -4,6 +4,7 @@
daemon="${TRUEPREFIX}/sbin/prosodyctl"
daemon_user="_prosody"
+daemon_flags="start"
. /etc/rc.d/rc.subr
@@ -14,10 +15,6 @@ rc_check() {
${TRUEPREFIX}/sbin/prosodyctl status || return 1
}
-rc_start() {
- ${TRUEPREFIX}/sbin/prosodyctl start
-}
-
rc_stop() {
${TRUEPREFIX}/sbin/prosodyctl stop
}

0 comments on commit 0796fe7

Please sign in to comment.