Try s6-linux-init [1]; you can modify the scripts in the `.s6-svscan' directory according to your requirements.
[1] <http://skarnet.org/software/s6-linux-init/>. On Sat, Nov 26, 2016 at 03:10:32PM +0300, Jean Louis wrote: > Now I wonder how to practically implement the -s option, should I just > give it something like "sudo s6-poweroff"? -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C