diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-01-24 22:58:41 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-01-24 22:58:41 +0000 |
commit | dc3a121cb5805063d8666b76d82808dcd846844e (patch) | |
tree | aae2af62bb0f90410a1b0b83461761da11e7555a | |
parent | 331e329d71757004817068efffdd9df35e06ea8d (diff) | |
download | pfsense-packages-dc3a121cb5805063d8666b76d82808dcd846844e.tar.gz pfsense-packages-dc3a121cb5805063d8666b76d82808dcd846844e.tar.bz2 pfsense-packages-dc3a121cb5805063d8666b76d82808dcd846844e.zip |
Daemonize for the win.
-rw-r--r-- | packages/avahi/avahi.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/avahi/avahi.inc b/packages/avahi/avahi.inc index a9e1038b..364ded51 100644 --- a/packages/avahi/avahi.inc +++ b/packages/avahi/avahi.inc @@ -62,6 +62,10 @@ function setup_avahi() { return; } + // Add needed users and groups + exec("/usr/sbin/pw useradd avahi"); + exec("/usr/sbin/pw groupadd avahi"); + // No supplied domains? Use the defaults. if(!$browsedomains) $browsedomains = "local, 0pointer.de, zeroconf.org"; @@ -124,7 +128,7 @@ EOF; fwrite($fd, $avahiconfig); fclose($fd); /* Write out rc.d startup file */ - $start = "/usr/local/sbin/avahi-daemon"; + $start = "/usr/local/sbin/avahi-daemon -D"; $stop = "/usr/bin/killall avahi-daemon"; write_rcfile(array( "file" => "avahi-daemon.sh", |