12 |
+ # bring the service up if it is enabled (and we're not stopping it or running it once, or using signal able to start it) |
+ # bring the service up if it is enabled (and we're not stopping it or running it once, or using signal able to start it) |
13 |
+ unshift(@actions,'start') if ($enabled && !grep { /^(down|stop|d|once|o|start|restart|reload-or-restart)$/ } @actions) ; |
+ unshift(@actions,'start') if ($enabled && !grep { /^(down|stop|d|once|o|start|restart|reload-or-restart)$/ } @actions) ; |
14 |
+ # stop the service if it is disabled |
+ # stop the service if it is disabled |
15 |
+ @actions = ('stop'); |
+ @actions = ('stop') unless $enabled; |
16 |
foreach (@actions) |
foreach (@actions) |
17 |
{ |
{ |
18 |
warn "adjusting non-supervised $service ($_)\n"; |
warn "adjusting non-supervised $service ($_)\n"; |