]> arthur.barton.de Git - netatalk.git/blob - distrib/initscripts/rc.gentoo.tmpl
c66e1e95d4f3bb527aa299ab46c6edc9687c2e64
[netatalk.git] / distrib / initscripts / rc.gentoo.tmpl
1 #!/sbin/runscript
2
3 # Netatalk :NETATALK_VERSION: daemons.
4
5 depend() {
6     need net
7     use logger dns
8 }
9
10 netatalk_startup () {
11     ebegin "Starting netatalk"
12     start-stop-daemon --start --quiet --exec :SBINDIR:/netatalk
13     eend $?
14 }
15
16 start () {
17     netatalk_startup
18 }
19
20 stop () {
21     ebegin "Stopping netatalk"
22     start-stop-daemon --stop --quiet --exec :SBINDIR:/netatalk
23     eend $?
24 }