From c05fd0282aa9d14f15690308761caf93805285f7 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Tue, 28 Apr 2015 13:27:48 +0200 Subject: testing/consul: new aport APKBUILD provided by Olivier Mauras --- testing/consul/consul.initd | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 testing/consul/consul.initd (limited to 'testing/consul/consul.initd') diff --git a/testing/consul/consul.initd b/testing/consul/consul.initd new file mode 100644 index 0000000000..73613d979c --- /dev/null +++ b/testing/consul/consul.initd @@ -0,0 +1,30 @@ +#!/sbin/runscript + +name=consul +daemon=/usr/sbin/$name +daemon_user=$name +daemon_group=$name + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${name}" + start-stop-daemon --start --quiet \ + -m --pidfile /var/run/${name}.pid \ + --user ${daemon_user} --group ${daemon_group} \ + -b -1 /dev/null -2 /dev/null \ + -k 027 --exec ${daemon} -- ${consul_opts} + eend $? +} + +stop() { + ebegin "Stopping ${name}" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/${name}.pid \ + --exec ${daemon} + eend $? +} + -- cgit v1.2.3