aboutsummaryrefslogtreecommitdiffstats
path: root/community/ympd/ympd.initd
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2017-10-19 11:45:19 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2017-10-19 12:19:07 +0200
commit4b29650cdf482ed0d27245473d7eda5324a67094 (patch)
treeceac920b221bfe65db9b93debc42031229ca33e8 /community/ympd/ympd.initd
parent7f392d58565b1aa848487cd5d61ccc147ed051f2 (diff)
downloadaports-4b29650cdf482ed0d27245473d7eda5324a67094.tar.bz2
aports-4b29650cdf482ed0d27245473d7eda5324a67094.tar.xz
community/ympd: move from main
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"
+}