feeder/seweb: restart automatically on reboot
use enable and enable-linger for this
This commit is contained in:
@@ -55,10 +55,13 @@ class SingleManager(ServiceManager):
|
|||||||
action = 'restart'
|
action = 'restart'
|
||||||
else:
|
else:
|
||||||
action = 'start'
|
action = 'start'
|
||||||
|
os.system('loginctl enable-linger')
|
||||||
self.systemd_action(service, action)
|
self.systemd_action(service, action)
|
||||||
|
self.systemd_action(service, 'enable')
|
||||||
|
|
||||||
def do_stop(self, ins, service=None, *args):
|
def do_stop(self, ins, service=None, *args):
|
||||||
self.systemd_action(service, 'stop')
|
self.systemd_action(service, 'stop')
|
||||||
|
self.systemd_action(service, 'disable')
|
||||||
|
|
||||||
|
|
||||||
class FeederManager(SingleManager):
|
class FeederManager(SingleManager):
|
||||||
|
|||||||
Reference in New Issue
Block a user