1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-04-15 16:54:48 +02:00

SystemD: added user-flag to an edit command

This commit is contained in:
2026-04-01 00:12:43 +02:00
parent 024a12f7cf
commit 3799fef95e

View File

@@ -11,6 +11,8 @@ To run a command (in this case `/bin/bash /root/run.sh`) create the following
file at `/etc/systemd/system/` with a name ending on `.service`. file at `/etc/systemd/system/` with a name ending on `.service`.
In this case it is called `unturned.service`. In this case it is called `unturned.service`.
Alternatively to creating the command manually the following command can be used. Alternatively to creating the command manually the following command can be used.
The `--user` flag may be useful as explained in the
[corresponding section](#startstopenabledisable-a-service-and-retrieve-its-logs).
```sh ```sh
systemctl edit --force --full unturned.service systemctl edit --force --full unturned.service