vergoh / vnstat

vnStat - a network traffic monitor for Linux and BSD
GNU General Public License v2.0
1.36k stars 120 forks source link

On systemd, run the service not as root #185

Closed sevu closed 3 years ago

sevu commented 3 years ago

… with the same username as used on debian.

vergoh commented 3 years ago

This change breaks the install instructions in INSTALL.md for most systemd using distributions since the vnstat user doesn't exist by default making that file a bad example file. I feel it's better to leave new user creation to distribution specific packaging in case such convention is felt to be necessary. Starting directly as non-root has also the side effect that the daemon doesn't have the necessary permissions for fixing possible directory/file permission issues (often created by copypasting old incorrect or outdated instructions "from the Internet").