diff options
-rw-r--r-- | debian/vyos-1x.preinst | 1 | ||||
-rw-r--r-- | src/etc/systemd/system/LCDd.service.d/override.conf | 8 | ||||
-rw-r--r-- | src/systemd/LCDd.service | 14 |
3 files changed, 15 insertions, 8 deletions
diff --git a/debian/vyos-1x.preinst b/debian/vyos-1x.preinst new file mode 100644 index 000000000..009fd22a2 --- /dev/null +++ b/debian/vyos-1x.preinst @@ -0,0 +1 @@ +dpkg-divert --package vyos-1x --add --rename /lib/systemd/system/lcdproc.service diff --git a/src/etc/systemd/system/LCDd.service.d/override.conf b/src/etc/systemd/system/LCDd.service.d/override.conf deleted file mode 100644 index 5f3f0dc95..000000000 --- a/src/etc/systemd/system/LCDd.service.d/override.conf +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -After= -After=vyos-router.service - -[Service] -ExecStart= -ExecStart=/usr/sbin/LCDd -c /run/LCDd/LCDd.conf - diff --git a/src/systemd/LCDd.service b/src/systemd/LCDd.service new file mode 100644 index 000000000..233c1e2ca --- /dev/null +++ b/src/systemd/LCDd.service @@ -0,0 +1,14 @@ +[Unit] +Description=LCD display daemon +Documentation=man:LCDd(8) http://www.lcdproc.org/ +RequiresMountsFor=/run +ConditionPathExists=/run/LCDd/LCDd.conf +After=vyos-router.service + + +[Service] +User=root +ExecStart=/usr/sbin/LCDd -s 1 -f -c /run/LCDd/LCDd.conf + +[Install] +WantedBy=multi-user.target |