eoptasks: add passerelle/wcs restart command shortcuts

This commit is contained in:
Frédéric Péters 2020-06-16 07:49:46 +02:00
parent 11e9b99ce0
commit 44b299c31d
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,8 @@ def command_window(args):
# memcached.restart is useful to force shared theme to be updated.
'memcached.restart': '''sudo service memcached restart; /bin/true''',
'restart.all': '''sudo systemctl restart authentic2-multitenant bijoe chrono combo corbo fargo hobo passerelle wcs; /bin/true''',
'passerelle.restart': '''sudo systemctl restart passerelle; /bin/true''',
'wcs.restart': '''sudo systemctl restart wcs; /bin/true''',
# puppet.update, unfortunately without proper error checking.
'puppet.update': '''sudo puppet agent -t || true''',
}.get(args.cmd, args.cmd)