Change systemd remove py2 and add basic hardening options (thanks to team sabnzbd).

This commit is contained in:
JackDandy 2024-06-13 13:49:28 +01:00
parent f21631ce37
commit 4a6cd14465
2 changed files with 8 additions and 3 deletions

View file

@ -21,6 +21,7 @@
* Update unidecode module 1.3.6 (4141992) to 1.3.8 (dfe397d) * Update unidecode module 1.3.6 (4141992) to 1.3.8 (dfe397d)
* Update urllib3 2.0.7 (56f01e0) to 2.2.1 (54d6edf) * Update urllib3 2.0.7 (56f01e0) to 2.2.1 (54d6edf)
* Change growl notifier location for Apprise update refactor * Change growl notifier location for Apprise update refactor
* Change systemd remove py2 and add basic hardening options
### 3.31.0 (2024-06-05 08:00:00 UTC) ### 3.31.0 (2024-06-05 08:00:00 UTC)

View file

@ -39,10 +39,14 @@ User=sickgear
Group=sickgear Group=sickgear
Environment=PYTHONUNBUFFERED=true Environment=PYTHONUNBUFFERED=true
ExecStart=/usr/bin/python2 /opt/sickgear/app/sickgear.py --systemd --datadir=/opt/sickgear/data ExecStart=/opt/sickgear/app/sickgear.py --systemd --datadir=/opt/sickgear/data
KillMode=process KillMode=process
Restart=on-failure Restart=on-failure
WorkingDirectory=/opt/sickgear ProtectSystem=full
DeviceAllow=/dev/null rw
DeviceAllow=/dev/urandom r
DevicePolicy=strict
NoNewPrivileges=yesWorkingDirectory=/opt/sickgear
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target