mirror of https://gitlab.com/octospacc/Configs.git
14 lines
283 B
SYSTEMD
14 lines
283 B
SYSTEMD
[Unit]
|
|
Description=TelegramIndex
|
|
After=network.target
|
|
StartLimitIntervalSec=0
|
|
[Service]
|
|
Type=simple
|
|
Restart=always
|
|
RestartSec=15
|
|
User=pi
|
|
WorkingDirectory=/Server/TelegramIndex-Fork
|
|
ExecStart=/usr/bin/bash -c "set -a; source .env; python3 -m app"
|
|
[Install]
|
|
WantedBy=multi-user.target
|