summaryrefslogtreecommitdiffstats
path: root/remote/modules/systemd/data
diff options
context:
space:
mode:
authorSimon Rettberg2013-06-20 15:48:09 +0200
committerSimon Rettberg2013-06-20 15:48:09 +0200
commite4eabbb11af0d2d75dbc03940d359ed41234a80b (patch)
tree519821d9d9520db78637db4f8fa8710fa0354ff6 /remote/modules/systemd/data
parent[rootfs-stage32] remove unneeded binaries (diff)
downloadtm-scripts-e4eabbb11af0d2d75dbc03940d359ed41234a80b.tar.gz
tm-scripts-e4eabbb11af0d2d75dbc03940d359ed41234a80b.tar.xz
tm-scripts-e4eabbb11af0d2d75dbc03940d359ed41234a80b.zip
[udhcpc] Properly renew and fork to background
Diffstat (limited to 'remote/modules/systemd/data')
-rw-r--r--remote/modules/systemd/data/etc/systemd/system/udhcpc@.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/remote/modules/systemd/data/etc/systemd/system/udhcpc@.service b/remote/modules/systemd/data/etc/systemd/system/udhcpc@.service
index db67c6b6..611d0f98 100644
--- a/remote/modules/systemd/data/etc/systemd/system/udhcpc@.service
+++ b/remote/modules/systemd/data/etc/systemd/system/udhcpc@.service
@@ -2,8 +2,10 @@
Description=DHCP Client
[Service]
-Type=simple
+Type=forking
+PIDFile=/run/udhcpc.%I.pid
ExecStart=/opt/openslx/bin/dhcp++ %I
+ExecStopPost=/bin/rm /run/udhcpc.%I.pid
[Install]
WantedBy=multi-user.target