diff options
| author | Scott Moser <smoser@ubuntu.com> | 2015-07-27 20:53:44 -0400 | 
|---|---|---|
| committer | Scott Moser <smoser@ubuntu.com> | 2015-07-27 20:53:44 -0400 | 
| commit | 39f25660714e5640be3dce576a6cfdee9a1672c8 (patch) | |
| tree | 3e876d49be671b85324af3f22952ff47a3461fda /cloudinit | |
| parent | 81a9f17a71f9cac4c78ea5ce80b4a96e3bbb9324 (diff) | |
| download | vyos-cloud-init-39f25660714e5640be3dce576a6cfdee9a1672c8.tar.gz vyos-cloud-init-39f25660714e5640be3dce576a6cfdee9a1672c8.zip | |
use 'restart' rather than 'reload' on non-systemd systems
Testing on trusty shows that:
  service rsyslog reload 
does produce a message like:
  rsyslogd was HUPed
but does not result in new config being in honored.
Using restart does, and with upstart that should be fine (as upstart will
start only if previously running).
Diffstat (limited to 'cloudinit')
| -rw-r--r-- | cloudinit/config/cc_rsyslog.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/cloudinit/config/cc_rsyslog.py b/cloudinit/config/cc_rsyslog.py index a07200c3..82e382e8 100644 --- a/cloudinit/config/cc_rsyslog.py +++ b/cloudinit/config/cc_rsyslog.py @@ -102,7 +102,7 @@ def reload_syslog(command=DEF_RELOAD, systemd=False):          if systemd:              cmd = ['systemctl', 'reload-or-try-restart', service]          else: -            cmd = ['service', service, 'reload'] +            cmd = ['service', service, 'restart']      else:          cmd = command      util.subp(cmd, capture=True) | 
