simplebot-org / simplebot

Extensible Delta Chat bot written in Python3
Mozilla Public License 2.0
34 stars 9 forks source link

Service installation #80

Closed EchedelleLR closed 2 years ago

EchedelleLR commented 3 years ago

I was thinking in a generator for SysVInit, systemd or OpenRC like https://github.com/cloudflare/cloudflared/blob/master/cmd/cloudflared/linux_service.go (this is only dedicated to SysVinit and systemd).

In this way, would have integration with different systems.

Providing only a SysVInit file is also a solution for nearly all environments (systemd has compatibility over it and the same happens with OpenRC).

adbenitez commented 2 years ago

this is the script I use to create a service for my simplebot instances: https://github.com/simplebot-org/simplebot/blob/master/scripts/create_service.py

EchedelleLR commented 2 years ago

That is only compatible with SystemD, where my question was more abstract and allowing other init systems.

Which, in fact, is allowed by cloudflared.