http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-fs/netatalk/files/netatalk.init?revision=1.1
* UPD: libevent configure args to pick up installed version. Removed
configure arg --disable-libevent, added configure args
--with-libevent-header|lib.
+* UPD: gentoo initscript: merge from portage netatalk.init,v 1.1
* REM: Remove --with-smbsharemodes configure option, it was an
empty stub not yet implemented
#!/sbin/runscript
-
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+#
# Netatalk :NETATALK_VERSION: daemons.
-depend() {
- need net
- use logger dns
-}
-
-netatalk_startup () {
- ebegin "Starting netatalk"
- start-stop-daemon --start --quiet --exec :SBINDIR:/netatalk
- eend $?
-}
-
-start () {
- netatalk_startup
-}
+command=":SBINDIR:/${SVCNAME}"
-stop () {
- ebegin "Stopping netatalk"
- start-stop-daemon --stop --quiet --exec :SBINDIR:/netatalk
- eend $?
+depend() {
+ need net
+ use avahi-daemon
+ use logger dns
+ after entropy
}