Added telegram-bot-api systemd unit
This commit is contained in:
parent
8e4e179c7d
commit
b6485f4e58
|
@ -0,0 +1,4 @@
|
|||
ip=127.0.0.1
|
||||
port=5326
|
||||
api_id=123
|
||||
api_hash=abcde123
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Telegram Bot API server
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile=/home/q/.config/telegram-bot-api/config.env
|
||||
WorkingDirectory=~
|
||||
ExecStart=/home/q/bin/telegram-bot-api --api-id=${api_id} --api-hash=${api_hash} --local --http-stat-ip-address=${ip} --http-port=${port} --dir=/home/q/.config/telegram-bot-api/
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue