aboutsummaryrefslogtreecommitdiffstats
path: root/community/sane/saned.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/sane/saned.initd')
-rw-r--r--community/sane/saned.initd14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/sane/saned.initd b/community/sane/saned.initd
new file mode 100644
index 00000000000..6482073ef48
--- /dev/null
+++ b/community/sane/saned.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+
+description="SANE network scanner server"
+
+owner=saned
+pidfile=/run/saned/saned.pid
+cfgfile=/etc/sane.d/saned.conf
+command=/usr/sbin/saned
+command_args="-a $owner"
+required_files="$cfgfile"
+
+start_pre() {
+ checkpath -dm755 -o $owner ${pidfile%/*}
+}