Skip to content

Instantly share code, notes, and snippets.

@nakal
Last active January 11, 2020 22:53
Show Gist options
  • Save nakal/6a29af5e543e28f2d636 to your computer and use it in GitHub Desktop.
Save nakal/6a29af5e543e28f2d636 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# $FreeBSD$
# PROVIDE: phabricator_phd
# REQUIRE: DAEMON mysql
# KEYWORD: shutdown
. /etc/rc.subr
name=phabricator_phd
rcvar=phabricator_phd_enable
load_rc_config $name
: ${phabricator_phd_enable="NO"}
PATH=$PATH:/usr/local/bin
command="/usr/local/lib/php/phabricator/bin/phd"
case $1 in
*start)
command_args="start"
;;
*stop)
command_args="stop"
;;
esac
run_rc_command $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment