Skip to content

Instantly share code, notes, and snippets.

@noqqe
Last active December 27, 2015 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noqqe/7397719 to your computer and use it in GitHub Desktop.
Save noqqe/7397719 to your computer and use it in GitHub Desktop.
OpenBSD rc.d script for "Isso - Ich schrei sonst"
#!/bin/sh
#
# $OpenBSD: isso,v 1.0 2013/11/10 14:34:36 noqqe Exp $
daemon="/usr/local/bin/isso"
issolog="/home/isso/comments.log"
issoconf="/home/isso/isso.cfg"
daemon_user="isso"
daemon_flags="-c $issoconf run 1>>$issolog 2>>$issolog"
rc_bg=YES
. /etc/rc.d/rc.subr
pexp="/usr/local/bin/python2.7 /usr/local/bin/isso"
rc_reload() {
${daemon} -s reload
}
rc_stop() {
${daemon} -s stop || pkill -f "^${pexp}"
}
rc_cmd $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment