Created
June 29, 2013 10:55
-
-
Save noqqe/5890728 to your computer and use it in GitHub Desktop.
my OpenBSD rc script for gitit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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