summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/serf')
-rw-r--r--app-admin/serf/files/serf.initd15
-rw-r--r--app-admin/serf/serf-0.8.1-r1.ebuild (renamed from app-admin/serf/serf-0.8.1.ebuild)0
2 files changed, 2 insertions, 13 deletions
diff --git a/app-admin/serf/files/serf.initd b/app-admin/serf/files/serf.initd
index 3959f3120153..042e4f8018a8 100644
--- a/app-admin/serf/files/serf.initd
+++ b/app-admin/serf/files/serf.initd
@@ -5,7 +5,7 @@
description="serf agent"
extra_started_commands="reload"
group=${group:-${RC_SVCNAME}}
-pidfile=${pidfile:-"/run/${RC_SVCNAME}/${RC_SVCNAME}.pid"}
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
user=${user:-${RC_SVCNAME}}
command="/usr/bin/${RC_SVCNAME}"
@@ -14,10 +14,10 @@ command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
--stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
--stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+stopsig="SIGINT"
depend() {
need net
- after net
}
reload() {
@@ -25,14 +25,3 @@ reload() {
${command} reload
eend $?
}
-
-start_pre() {
- checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
-}
-
-stop() {
- # SIGINT is required for graceful shutdown of serf agent
- ebegin "Stopping ${RC_SVCNAME}"
- start-stop-daemon --stop --signal SIGINT --pidfile "${pidfile}"
- eend $?
-}
diff --git a/app-admin/serf/serf-0.8.1.ebuild b/app-admin/serf/serf-0.8.1-r1.ebuild
index 963e9bcc99ef..963e9bcc99ef 100644
--- a/app-admin/serf/serf-0.8.1.ebuild
+++ b/app-admin/serf/serf-0.8.1-r1.ebuild