Skip to content
Snippets Groups Projects
Commit 29b1e35d authored by Ondrej Mikle's avatar Ondrej Mikle
Browse files

Initscript stop() tweaks

parent f3c65e31
Branches
Tags 0.2
No related merge requests found
......@@ -23,7 +23,8 @@ start() {
stop() {
#we need pgkill, hence the - before pid
[ -f "$PIDFILE" ] || fatal "No pidfile present, daemon not running?"
/bin/kill -SIGTERM -$(cat "$PIDFILE")
rm "$PIDFILE"
rm -f "$PIDFILE"
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment