aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-27 13:32:13 +0000
committerRoy Marples <roy@marples.name>2009-04-27 13:32:13 +0000
commit824bb3aee3940c1b0b36effaf8a8434039fdc44b (patch)
treed6284771a6b1f2b62faac487f3a64242b8beb58a
parent0f70279f89b55477205725252178f1bcdc72be01 (diff)
Allow templates to define a stop signal
-rw-r--r--sh/runscript.sh.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in
index 8ed84d89..abdaacb9 100644
--- a/sh/runscript.sh.in
+++ b/sh/runscript.sh.in
@@ -106,7 +106,8 @@ stop()
start-stop-daemon --stop \
${command:+--exec} $command \
${procname:+--name} $procname \
- ${pidfile:+--pidfile} $pidfile
+ ${pidfile:+--pidfile} $pidfile \
+ ${stopsig:+--signal} $stopsig
eend $? "Failed to stop $RC_SVCNAME"
}