pkg/44990 (net/netatalk): Fix afpd startup script

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.
This commit is contained in:
marino 2011-10-30 10:08:22 +00:00
parent 615458fbf9
commit 771e08f0f4
2 changed files with 14 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.41 2011/09/22 01:20:20 christos Exp $
$NetBSD: distinfo,v 1.42 2011/10/30 10:08:22 marino Exp $
SHA1 (netatalk-2.2.1.tar.bz2) = e588b89eced7769f65e213bc4b1b1e4f8035c8b3
RMD160 (netatalk-2.2.1.tar.bz2) = bc55a591fe134d3bf05ca442aa5b5246fd766b8c
@ -16,3 +16,4 @@ SHA1 (patch-aq) = 0793cf5ec158aa27c42b5d8a96651307d7c7c8b6
SHA1 (patch-ar) = 8c6c6169496b9b2cdec6049d2ee45884d5513d11
SHA1 (patch-au) = 8505351fee21ac1effa4dc620b8006c572b913c1
SHA1 (patch-bj) = abbc2809b6b7fe75ec2d2f8f2fa8d6cd9d6de7b0
SHA1 (patch-bk) = c3fb7c3a42f148171fa99b6121b099dd4998947a

View file

@ -0,0 +1,12 @@
$NetBSD: patch-bk,v 1.1 2011/10/30 10:08:22 marino Exp $
--- distrib/initscripts/rc.afpd.netbsd.tmpl.orig 2011-08-31 06:10:48.000000000 +0000
+++ distrib/initscripts/rc.afpd.netbsd.tmpl
@@ -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