Bug#912651: /etc/init.d/skeleton: provide a generic skeleton as well

Dmitry Bogatov KAction at debian.org
Sun Dec 23 14:59:04 GMT 2018

Sorry for late response.

[2018-11-02 12:42] Adam Borowski <kilobyte at angband.pl>
> The contents of /etc/init.d/skeleton has been recentlish changed to an
> one-liner that uses /lib/init/init-d-script hiding all the actual code.
> That's fine if all what you want is to start a daemon; there's a lot
> of other things people want to do in an init scripts.

Well, /etc/init.d/skeleton is no more. There is init-d-script(5) instead.

> For example, what I want right now does:
>   start)
> 	mkfs -t ext4 /dev/pmem0
> 	mount -o dax /dev/pmem0 /mnt/pmem
> 	chmod 1777 /mnt/pmem
>   stop)
> 	umount /mnt/pmem

As you probably know, you could copy LSB header from init-d-script(5);
there also enumeration of override function names.

In your particular case, you want to define `do_start_override' and
`do_stop_override'. Is it good enough?

Oh, you know, I would add vim syntax highlighting for these special
names and variables. But it is irrelevant to your request, I guess?

More information about the Debian-init-diversity mailing list