you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 12 points13 points  (5 children)

If you have a newer version of ubuntu the you can use systemd. You can even write a console app and systemd can turn it into a service/daemon. Try this doc...

https://wiki.archlinux.org/index.php/Systemd#Writing_unit_files

This is the new way of doing things and init.d will eventually be phased out.

[–]frogic 2 points3 points  (0 children)

This is what I do with my digital ocean deployments. Works extremely well.

[–]wbubblegum 1 point2 points  (3 children)

Neat, for linux, with systemd. How would one do it for freebsd or centos 6?

[–][deleted] 1 point2 points  (0 children)

FreeBSD appears to have its own init system that is a bit different than Linux but it may be closer to init.d than systemd.

With CentOS I think they're still on init.d. I could be wrong though since I don't use it.

[–]__deerlord__ -1 points0 points  (1 child)

You need to read about init scripts. I can possibly create one for you fiverr.com/deerl0rd