Skip to content

Instantly share code, notes, and snippets.

@noqqe
Created June 29, 2013 10:55
Show Gist options
  • Select an option

  • Save noqqe/5890728 to your computer and use it in GitHub Desktop.

Select an option

Save noqqe/5890728 to your computer and use it in GitHub Desktop.
my OpenBSD rc script for gitit
#!/bin/sh
#
# $OpenBSD: gitit,v 1.0 2013/06/28 14:34:36 noqqe Exp $
daemon="/usr/local/bin/gitit"
daemon_user="gitit"
daemon_flags="-f /etc/gitit.conf"
rc_bg=YES
. /etc/rc.d/rc.subr
pexp="/usr/local/bin/gitit"
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