first commit
This commit is contained in:
16
systemd/pytorrent.service
Normal file
16
systemd/pytorrent.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=pyTorrent web UI for rTorrent
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/pytorrent
|
||||
EnvironmentFile=/opt/pytorrent/.env
|
||||
ExecStart=/opt/pytorrent/venv/bin/python /opt/pytorrent/app.py
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
User=www-data
|
||||
Group=www-data
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user