summaryrefslogtreecommitdiff
path: root/user/sane/saned.initd
diff options
context:
space:
mode:
Diffstat (limited to 'user/sane/saned.initd')
-rw-r--r--user/sane/saned.initd14
1 files changed, 14 insertions, 0 deletions
diff --git a/user/sane/saned.initd b/user/sane/saned.initd
new file mode 100644
index 000000000..6482073ef
--- /dev/null
+++ b/user/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%/*}
+}