From eecef93fb5a8f8c6015a1f58a8b1722d90456fdd Mon Sep 17 00:00:00 2001 From: parazyd Date: Wed, 24 Jan 2018 18:05:39 +0100 Subject: [PATCH] Add dam-dir OpenRC initscript to common rootfs-overlay. --- rootfs-overlay/common/etc/init.d/dam-dir | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 rootfs-overlay/common/etc/init.d/dam-dir diff --git a/rootfs-overlay/common/etc/init.d/dam-dir b/rootfs-overlay/common/etc/init.d/dam-dir new file mode 100755 index 0000000..656c85d --- /dev/null +++ b/rootfs-overlay/common/etc/init.d/dam-dir @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command=/home/decode/go/bin/dam-dir +pidfile=/var/run/dam-dir.pid + +description="Tor DAM server" + +depend() { + after logger +} + +start() { + start-stop-daemon --start -u decode -g decode \ + --pidfile $pidfile -b -m -x $command +}