:: Re: [DNG] Init scripts in packages
Página Inicial
Delete this message
Reply to this message
Autor: Steve Litt
Data:  
Para: dng
Assunto: Re: [DNG] Init scripts in packages
On Thu, 06 Aug 2015 10:28:47 +0100
Rainer Weikusat <rainerweikusat@???> wrote:

> But a bare-bones init script does really only three things:
>
> 1. Execute a command to start something.
> 2. Execute a command which stops it again.
> 3. Execute 2) then 1) for a restart.


Those are easy. The tough part is process dependencies. Especially
since a lot of daemons aren't ready to do their job when they first get
run, and report their readiness only to the systemd communication
system.

I think the biggest hassle is writing tiny scripts that basically
answer the question: "Is daemon X now functional?"

SteveT

Steve Litt
July 2015 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21