Initial commit
This commit is contained in:
18
schedule.service.template
Normal file
18
schedule.service.template
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Schedule Parser — расписание преподавателей
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=__SERVICE_USER__
|
||||
WorkingDirectory=__PROJECT_DIR__
|
||||
ExecStart=__PROJECT_DIR__/venv/bin/python app.py
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
# Логи доступны через: journalctl -u schedule -f
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user