I would like to write a service with the standard start, stop, restart, status interface and that runs on startup and restarts if killed. However, in researching solutions, I've discovered that there are multiple ways to do this with varying levels of support, and that the latest Debian release changed its support for installing services.
What's the simplest supported way to create a service in Jessie? What's the most canonical way to create a service in Jessie? Is /etc/init.d
only used for deprecated approaches?
apropos systemd
; the ones most applicable will probably besystemd.unit
,systemd.service
, andsystemd.exec
as most of the directives are in those). – goldilocks Jan 13 '17 at 18:41ls
, (man
,crontab
,nice
, etc.) may still differ slightly from one implementation to another, but: – goldilocks Jan 14 '17 at 09:18ls
used on Raspbian that differentiates it from most other distros. – goldilocks Jan 14 '17 at 09:19ls
for Raspberry Pi users. There's no need for that and spoon feeding beyond a certain point is not a favour to anyone. Good luck -- like a lot of things linux, systemd does not have the "consumer orientation" people are used to in an operating system (it's skewed toward the "power user"), and the docs reflect this, but don't mistake that for incoherence or dysfunction. – goldilocks Jan 14 '17 at 09:20