]> arthur.barton.de Git - netatalk.git/commitdiff
NetBSD: Fix afpd startup script, from patch-bk,v 1.1
authorHAT <hat@fa2.so-net.ne.jp>
Tue, 20 Dec 2011 10:44:59 +0000 (19:44 +0900)
committerHAT <hat@fa2.so-net.ne.jp>
Tue, 20 Dec 2011 10:44:59 +0000 (19:44 +0900)
Adds command_args to startup script to write the pid file to /var/run
as intended. Apparently the lack of a pid file  did not affect NetBSD's
ability to stop the daemon, but it did prevent it on DragonFly BSD.

distrib/initscripts/rc.afpd.netbsd.tmpl

index 6242d88c868f1f835b9a01336ad7fccf47f54855..672c2ede2f5f1bc9ba44acf7378da2e7e9c5b6d6 100644 (file)
@@ -17,6 +17,7 @@ rcvar=$name
 command=":SBINDIR:/afpd"
 etcdir=":ETCDIR:"
 pidfile="/var/run/${name}.pid"
+command_args="-P ${pidfile}"
 required_files="$etcdir/afpd.conf $etcdir/AppleVolumes.default $etcdir/AppleVolumes.system"
 
 load_rc_config $name