diff options
author | fmertz <fireboxled@gmail.com> | 2020-07-02 05:08:20 +0000 |
---|---|---|
committer | fmertz <fireboxled@gmail.com> | 2020-07-05 14:57:52 +0000 |
commit | 14e0a2339451492e226869cb977ab858bb1e7f17 (patch) | |
tree | 2d4f7aea3aab8fd35aace36c560957ad23ba29d7 /src/conf_mode/system-display.py | |
parent | d4199a17adeac422882013a8951d18b7c3b74f2a (diff) | |
download | vyos-1x-14e0a2339451492e226869cb977ab858bb1e7f17.tar.gz vyos-1x-14e0a2339451492e226869cb977ab858bb1e7f17.zip |
system display: T2564: Conf files to /run
* src/conf_mode/system-display.py conf files to /run
+ src/systemd/LCDd@.service lo
- src/systemd/lcdproc.service
+ src/systemd/lcdproc@.service lo
Diffstat (limited to 'src/conf_mode/system-display.py')
-rwxr-xr-x | src/conf_mode/system-display.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/conf_mode/system-display.py b/src/conf_mode/system-display.py index 557b7cf6a..9ab35a331 100755 --- a/src/conf_mode/system-display.py +++ b/src/conf_mode/system-display.py @@ -34,9 +34,9 @@ def generate(config_dict): if not config_dict: return None # Render config file for daemon LCDd - render('/etc/LCDd.conf', 'system-display/LCDd.conf.tmpl', config_dict) + render('/run/LCDd/LCDd.lo.conf', 'system-display/LCDd.conf.tmpl', config_dict) # Render config file for client lcdproc - render('/etc/lcdproc.conf', 'system-display/lcdproc.conf.tmpl', config_dict) + render('/run/lcdproc/lcdproc.lo.conf', 'system-display/lcdproc.conf.tmpl', config_dict) return None @@ -70,17 +70,17 @@ def verify(config_dict): def apply(config_dict): # Stop client - run('systemctl stop lcdproc.service') + run('systemctl stop lcdproc@lo.service') if not config_dict or 'disabled' in config_dict: # Stop server - run('systemctl stop LCDd.service') + run('systemctl stop LCDd@lo.service') return None # Restart server - run('systemctl restart LCDd.service') + run('systemctl restart LCDd@lo.service') # Start client - run('systemctl start lcdproc.service') + run('systemctl start lcdproc@lo.service') return None |