]> arthur.barton.de Git - netatalk.git/blobdiff - distrib/initscripts/rc.gentoo.tmpl
New service controller process netatalk
[netatalk.git] / distrib / initscripts / rc.gentoo.tmpl
diff --git a/distrib/initscripts/rc.gentoo.tmpl b/distrib/initscripts/rc.gentoo.tmpl
new file mode 100644 (file)
index 0000000..c66e1e9
--- /dev/null
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+
+# 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
+}
+
+stop () {
+    ebegin "Stopping netatalk"
+    start-stop-daemon --stop --quiet --exec :SBINDIR:/netatalk
+    eend $?
+}