add non root user info to systemd service exaample

This commit is contained in:
Lee 2023-06-27 08:48:02 +01:00
parent 308d15362b
commit a439c5bf26

@ -38,7 +38,7 @@ Description=<name>
ExecStart=<command> ExecStart=<command>
WorkingDirectory=<directory> WorkingDirectory=<directory>
Restart=always Restart=always
User=root User=root (use a non root user for better security)
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target