Add dam-client initscript.

This commit is contained in:
parazyd 2018-02-12 11:23:34 +01:00
parent a1bf5b0e7d
commit 6ea3f2e5e5
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
2 changed files with 18 additions and 1 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-client
pidfile=/var/run/dam-client.pid
description="Tor DAM client"
depend() {
after dam-dir
}
start() {
start-stop-daemon --start -u decode -g decode \
--pidfile $pidfile -b -m -x $command
}

View File

@ -1,7 +1,7 @@
#!/bin/sh
# rc.local for base images
[ -f /etc/ssh/ssh_host_rsa_key.pub ] || dpkg-reconfigure openssh-server
[ -f /etc/ssh/ssh_host_rsa_key.pub ] || ssh-keygen -A
netdata