15 lines
346 B
SYSTEMD
15 lines
346 B
SYSTEMD
|
# пример того что лежит на хосте
|
||
|
[Unit]
|
||
|
Description=pipisa-bot
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
User=jack
|
||
|
Type=simple
|
||
|
Restart=always
|
||
|
WorkingDirectory=/usr/share/python_bot
|
||
|
ExecStart=/usr/bin/python3 /usr/share/python_bot/bot.py
|
||
|
ExecStart=/usr/bin/python3 /usr/share/python_bot/bot.py
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target#
|