summaryrefslogtreecommitdiff
path: root/nonsystemd/sane-openrc/saned.initd
diff options
context:
space:
mode:
Diffstat (limited to 'nonsystemd/sane-openrc/saned.initd')
-rw-r--r--nonsystemd/sane-openrc/saned.initd13
1 files changed, 13 insertions, 0 deletions
diff --git a/nonsystemd/sane-openrc/saned.initd b/nonsystemd/sane-openrc/saned.initd
new file mode 100644
index 000000000..f7be87f3e
--- /dev/null
+++ b/nonsystemd/sane-openrc/saned.initd
@@ -0,0 +1,13 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+supervisor="supervise-daemon"
+pidfile="/run/saned.pid"
+command="/usr/bin/saned"
+# command_args="-a ${SANED_USER:-root}"
+command_args="${SANED_USER:-root}"
+
+start_pre() {
+ checkpath -d -o ${SANED_USER:-root} ${pidfile%/*}
+}