3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

build: Add script to start iwd.service via systemd-run

This commit is contained in:
Marcel Holtmann 2019-09-08 22:10:28 +02:00
parent 41f865d4df
commit c1a9f71b39

21
tools/run-iwd.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
systemd-run \
--pty --wait --collect \
--unit=iwd.service \
--service-type=dbus \
--property=BusName=net.connman.iwd \
--property=NotifyAccess=main \
--property=LimitNPROC=1 \
--property=Restart=on-failure \
--property=PrivateTmp=true \
--property=NoNewPrivileges=true \
--property=DevicePolicy=closed \
--property=DeviceAllow=/dev/rfkill\ rw \
--property=ProtectHome=yes \
--property=ProtectSystem=strict \
--property=ProtectControlGroups=yes \
--property=ProtectKernelModules=yes \
--property=StateDirectory=iwd \
--property=ConfigurationDirectory=iwd \
./src/iwd $*