aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-01-24 22:58:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2009-01-24 22:58:41 +0000
commitdc3a121cb5805063d8666b76d82808dcd846844e (patch)
treeaae2af62bb0f90410a1b0b83461761da11e7555a
parent331e329d71757004817068efffdd9df35e06ea8d (diff)
downloadpfsense-packages-dc3a121cb5805063d8666b76d82808dcd846844e.tar.gz
pfsense-packages-dc3a121cb5805063d8666b76d82808dcd846844e.tar.bz2
pfsense-packages-dc3a121cb5805063d8666b76d82808dcd846844e.zip
Daemonize for the win.
-rw-r--r--packages/avahi/avahi.inc6
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",