:: Re: [DNG] How to deploy an init.d s…
Top Page
Delete this message
Reply to this message
Author: Steffen Dettmer
Date:  
To: info at smallinnovations dot nl
CC: dng
Subject: Re: [DNG] How to deploy an init.d script to Devuan 2.0 (ASCII)
Hi,

thank you for your reply.

On Sat, Apr 13, 2019 at 9:39 AM info at smallinnovations dot nl
<info@???> wrote:
> For a better understanding of init scripts take a look at
> https://www.linuxnix.com/write-sysvinit-scripts/


I think its headline is a bit wrong, because the article
describes a system using scripts with "# chkconfig", which I think
was a RedHat frontend (compatible with SysV init), and "### BEGIN
INIT INFO", which I think is Linux Standard Base defined init,
which IIRC initially had tools like "insserv" as user frontends.

So I think it is not describing "SysV init scripts" but chkconfig
or LSB init scripts, so headline maybe should better be "Writing
chkconfig init scripts" or "Writing LSB init scripts". I'm not
sure if calling insserv directly (instead using update-rc.d) is
fully working in all cases on Devuan systems (maybe insserv does
not handle overrides or such), so maybe it is not fully
applicable for Devuan.

I'm afraid nowadays someone cannot assume that chkconfig,
service, insserv/rmserv, other tooling modifying SysV init
scripts in /etc/rcX.d/ (and update-rc.d, which seems to be Debian
specific) being compatible to each other, not even on Linux, and
each requires package manager support for postinstall scripts,
which I don't have here.

Steffen