- dhcpcd and dhcpcd@ services enhances with 66-ns (pid namespace)
- the original services remain since 66-ns does not provide -yet-
restart if the service crashes.
--- /dev/null
+[main]
+@type = classic
+@version = 0.0.1
+@description = "dhcpcd daemon"
+@user = ( root )
+
+[start]
+@execute = ( execl-cmdline -s { 66-ns -o unshare=pid dhcpcd ${cmd_args} } )
+
+[environment]
+# -j sends the logs to a logfile for the per-service logger. Please consult
+# dhcpcd(8) for more options/switches.
+cmd_args=!-M -j /dev/stderr
--- /dev/null
+# The service takes the network interface device name as @I - e.g. dhcpcd@wlp0s18f2u5
+[main]
+@type = classic
+@version = 0.0.1
+@description = "dhcpcd daemon for @I"
+@user = ( root )
+
+[start]
+@execute = ( execl-cmdline -s { 66-ns -o unshare=pid dhcpcd -B @I ${cmd_args} } )
+
+[environment]
+# -j sends log to a logfile for the per-service logger. For more options/switches
+# please see dhcpcd(8).
+cmd_args=!-j /dev/stderr