Nimdy / Dedicated_Valheim_Server_Script

Valheim Server Manager . Supports: ValheimPlus, Bepinex, Multi-world, Multi-Lang, Update, Backup, Restore and more: Built for Linux
GNU Affero General Public License v3.0
697 stars 120 forks source link

Service file location wrong #7

Closed QuadeHale closed 3 years ago

QuadeHale commented 3 years ago

/etc/systemd/system is the location for root-level systemd scripts. Your service file should live in /lib/systemd/system instead.

Nimdy commented 3 years ago

Thanks. I will think it over.

Nimdy commented 3 years ago

I am still leaning to leaving it as is because not a lot of user know how to use Linux. For the Linux masters... I can understand the view but do you think this is best so user created account can executed the services without root?

Thoughts?

Nimdy commented 3 years ago

Going to close. If there is a strong stance to set this differently, then I am all for it but I feel this is opinionated (nothing wrong with that btw).

QuadeHale commented 3 years ago

You've got it backwards. Only root level service files should go in /etc/systemd/system. User level (general) service files should go in /lib/systemd/system.

Files in /etc/ with the same name override ones in /lib/. When making a new one, always put it in /lib/.

Only the location changes, permissions don't.

On Sat., Feb. 13, 2021, 09:50 Zerobandwidth, notifications@github.com wrote:

I am still leaning to leaving it as is because not a lot of user know how to use Linux. For the Linux masters... I can understand the view but do you think this is best so user created account can executed the services without root?

Thoughts?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Nimdy/Dedicated_Valheim_Server_Script/issues/7#issuecomment-778629590, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC7355KYGENE7WCQMGYGITTS62GT7ANCNFSM4XRQZSEA .

Nimdy commented 3 years ago

Thanks QuadeHale... I will switch them around. :) Sometimes we forget some basics :P