aboutsummaryrefslogtreecommitdiffstats
path: root/community/ympd/ympd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/ympd/ympd.initd')
-rw-r--r--community/ympd/ympd.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/community/ympd/ympd.initd b/community/ympd/ympd.initd
new file mode 100644
index 0000000000..48493ef035
--- /dev/null
+++ b/community/ympd/ympd.initd
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+
+name=ympd
+command=/usr/bin/$name
+command_args="-u $ympd_user"
+command_background=YES
+pidfile=$ympd_pid
+
+depend() {
+ use logger dns
+ need net
+ after firewall
+}
+
+start_pre() {
+ checkpath --directory --owner "$ympd_user" \
+ --mode 0775 /var/run/"$name"
+}