diff --git a/examples/systemd/rathole@.service b/examples/systemd/rathole@.service index c5026077..508ba32f 100644 --- a/examples/systemd/rathole@.service +++ b/examples/systemd/rathole@.service @@ -4,7 +4,7 @@ After=network.target [Service] Type=simple -User=nobody +DynamicUser=yes Restart=on-failure RestartSec=5s ExecStart=/usr/bin/rathole /etc/rathole/%i.toml diff --git a/examples/systemd/ratholec.service b/examples/systemd/ratholec.service index 898edcba..742c750c 100644 --- a/examples/systemd/ratholec.service +++ b/examples/systemd/ratholec.service @@ -4,7 +4,7 @@ After=network.target [Service] Type=simple -User=nobody +DynamicUser=yes Restart=on-failure RestartSec=5s ExecStart=/usr/bin/rathole -c /etc/rathole/rathole.toml diff --git a/examples/systemd/ratholec@.service b/examples/systemd/ratholec@.service index c66c0f1a..472a02e4 100644 --- a/examples/systemd/ratholec@.service +++ b/examples/systemd/ratholec@.service @@ -4,7 +4,7 @@ After=network.target [Service] Type=simple -User=nobody +DynamicUser=yes Restart=on-failure RestartSec=5s ExecStart=/usr/bin/rathole -c /etc/rathole/%i.toml diff --git a/examples/systemd/ratholes.service b/examples/systemd/ratholes.service index 7f8964f2..62e5031f 100644 --- a/examples/systemd/ratholes.service +++ b/examples/systemd/ratholes.service @@ -4,7 +4,7 @@ After=network.target [Service] Type=simple -User=nobody +DynamicUser=yes Restart=on-failure RestartSec=5s ExecStart=/usr/bin/rathole -s /etc/rathole/rathole.toml diff --git a/examples/systemd/ratholes@.service b/examples/systemd/ratholes@.service index 70424294..c101612b 100644 --- a/examples/systemd/ratholes@.service +++ b/examples/systemd/ratholes@.service @@ -4,7 +4,7 @@ After=network.target [Service] Type=simple -User=nobody +DynamicUser=yes Restart=on-failure RestartSec=5s ExecStart=/usr/bin/rathole -s /etc/rathole/%i.toml