2020-03-23 20:28:49 +00:00
|
|
|
# Allow jellyfin group to start, stop and restart itself
|
2020-12-05 00:08:49 +00:00
|
|
|
Cmnd_Alias RESTARTSERVER_SYSTEMD = /usr/bin/systemd-run systemctl restart jellyfin
|
|
|
|
Cmnd_Alias STARTSERVER_SYSTEMD = /usr/bin/systemd-run systemctl start jellyfin
|
|
|
|
Cmnd_Alias STOPSERVER_SYSTEMD = /usr/bin/systemd-run systemctl stop jellyfin
|
2020-03-23 20:28:49 +00:00
|
|
|
|
|
|
|
jellyfin ALL=(ALL) NOPASSWD: RESTARTSERVER_SYSTEMD
|
|
|
|
jellyfin ALL=(ALL) NOPASSWD: STARTSERVER_SYSTEMD
|
|
|
|
jellyfin ALL=(ALL) NOPASSWD: STOPSERVER_SYSTEMD
|
|
|
|
|
|
|
|
Defaults!RESTARTSERVER_SYSTEMD !requiretty
|
|
|
|
Defaults!STARTSERVER_SYSTEMD !requiretty
|
|
|
|
Defaults!STOPSERVER_SYSTEMD !requiretty
|
|
|
|
|
|
|
|
Defaults:jellyfin !requiretty
|