Add init scripts
This commit is contained in:
parent
0d5f7069a0
commit
071f89287a
7
init/openrc
Normal file
7
init/openrc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
|
||||||
|
description="Telegram Userbot"
|
||||||
|
command="/usr/bin/ubot"
|
||||||
|
command_user="bot:bot"
|
||||||
|
command_background=true
|
||||||
|
pidfile="/run/ubot.pid"
|
12
init/systemd
Normal file
12
init/systemd
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Telegram Userbot
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=bot
|
||||||
|
ExecStart=/usr/bin/ubot
|
||||||
|
Restart=always
|
||||||
|
RestartSec=0
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user