aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-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",