eventscripts: Simplify handling of $service name in service_management
authorMartin Schwenke <martin@meltin.net>
Mon, 29 Apr 2013 17:13:36 +0000 (03:13 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 6 May 2013 05:45:10 +0000 (15:45 +1000)
commite24baac0d2952e86d5ff31235901f06e2f2b2449
tree719e0b4f7ecb11d4006a323b6b658d744cea97ea
parentc2ea72ff565222f9edab408638bd45dbba6e8ff7
eventscripts: Simplify handling of $service name in service_management

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