diff --git a/init/openrc b/init/openrc new file mode 100644 index 0000000..d439b1c --- /dev/null +++ b/init/openrc @@ -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" diff --git a/init/systemd b/init/systemd new file mode 100644 index 0000000..7fcd803 --- /dev/null +++ b/init/systemd @@ -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