Better FreeBSD's startup script

This commit is contained in:
Sergey Matveev 2015-10-11 21:02:52 +03:00
parent e657ffd2ab
commit 3cee88801c

6
startup/freebsd.rc Normal file → Executable file
View File

@ -2,14 +2,16 @@
#
# PROVIDE: goircd
# REQUIRE: FILESYSTEMS NETWORKING
# REQUIRE: DAEMON
. /etc/rc.subr
name="goircd"
rcvar=goircd_enable
command="/home/goircd/goircd"
command_args="-hostname irc.example.com &"
command_args="-hostname irc.example.com >> /var/log/goircd.log 2>&1 &"
goircd_user="goircd"
goircd_group="goircd"
load_rc_config $name
run_rc_command "$1"