How to implement a Linux daemon in bash that can be start/stop by `sudo service`?

Colin Law clanlaw at gmail.com
Sun Feb 18 17:50:29 UTC 2018


On 18 February 2018 at 17:33, Peng Yu <pengyu.ut at gmail.com> wrote:

>
> Can anybody provide a minimal working example so that I learn about
> it? Not that the example must be working, thus a man page is not what
> I am looking for. It must be minimal, thus any application-specific
> (except some simple code for demonstrator purpose) should not be
> excluded. Only code related to the above two points should be
> maintained.
>

Googling for
example systemd service
yields this as the first hit for me
https://www.devdungeon.com/content/creating-systemd-service-files

There are other examples in the hits there.

Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20180218/e9bd4567/attachment.html>


More information about the ubuntu-users mailing list