eventscripts: Simplify handling of $service name in start/stop functions
authorMartin Schwenke <martin@meltin.net>
Mon, 29 Apr 2013 17:18:01 +0000 (03:18 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 6 May 2013 05:45:10 +0000 (15:45 +1000)
commitb5802c4735e1c719a5cf9ce69489d5947bd5e8c5
tree90f1e89088dc5ebe0c9f0a2f876a422d5ceac671
parente24baac0d2952e86d5ff31235901f06e2f2b2449
eventscripts: Simplify handling of $service name in start/stop functions

Complicated argument handling was introduced to deal with multiple
services per eventscript.  This was a failure and we split 50.samba.

This simplifies several functions to use global $service_name
unconditionally instead of having an optional argument.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/functions