Instantly share code, notes, and snippets.

@noqqe /isso
Last active Dec 27, 2015

Embed
What would you like to do?
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