summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-06-16 05:49:46 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-06-16 05:49:46 (GMT)
commit44b299c31d7f9441d9d949eb2a5230f909bc8256 (patch)
treeb7ac0fafb8913dd2dedf1955ceee440feec5df94
parent11e9b99ce0e9154ce61d28f44aae9cd96abcf941 (diff)
downloadmisc-fred-44b299c31d7f9441d9d949eb2a5230f909bc8256.zip
misc-fred-44b299c31d7f9441d9d949eb2a5230f909bc8256.tar.gz
misc-fred-44b299c31d7f9441d9d949eb2a5230f909bc8256.tar.bz2
eoptasks: add passerelle/wcs restart command shortcuts
-rwxr-xr-xeoptasks/eoptasks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/eoptasks/eoptasks.py b/eoptasks/eoptasks.py
index 8b981b1..34259cd 100755
--- a/eoptasks/eoptasks.py
+++ b/eoptasks/eoptasks.py
@@ -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)