Add dam-dir OpenRC initscript to common rootfs-overlay.

This commit is contained in:
parazyd 2018-01-24 18:05:39 +01:00
parent 33ecc986e7
commit eecef93fb5
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 17 additions and 0 deletions

View File

@ -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
}