Add dam-client initscript.
This commit is contained in:
parent
a1bf5b0e7d
commit
6ea3f2e5e5
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue