On 04/14/2011 09:14 AM, Michal Hlavinka wrote:
Is there a good solution for this?
The right solution is to split this into three service files as I have done in bug 696611
then simply run
systemctl start/stop/restart/reload/enable upsd-master.service # for master ( which start the upsd-master and the upsd-driver service as was being done in the init script it will conflict with upsd-slave if it's running )
systemct start/stop/restart/reload/enable upsd-slave.service # for slave ( which will not start the upsd-driver service as was being done in the init script )
The upsd-driver should have been a seperate sysv service from the start from my pov but this is not the worst oddball I've come across...
JBG