From 3cee88801ca07e8d17ed86a5ca46c759329a11e8 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 11 Oct 2015 21:02:52 +0300 Subject: [PATCH] Better FreeBSD's startup script --- startup/freebsd.rc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 startup/freebsd.rc diff --git a/startup/freebsd.rc b/startup/freebsd.rc old mode 100644 new mode 100755 index 53bc8d9..c696412 --- a/startup/freebsd.rc +++ b/startup/freebsd.rc @@ -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"