On Sb, 11 oct 14, 13:40:08, Steve Litt wrote: > > sysvinit is an idea whose time has gone. sysvinit is a poor way to > showcase the Unix Way. First of all, the whole idea of runlevels is > bizarre, and adds a lot of complexity to init scripts. If you > compare a daemontools /service/myserviced/run to an init script, you'll > see an order of magnetude simplification, without sacrificing the > flexibility of a shellscript.
Why should I write a script? I'm not a programmer. [snip] > I *might* characterize the preceding as trying to reduce complexity for > the dufus who can't even write a shellscript. However, the cost of this > reduced complexity for the dufus is huge complexity within the program: > complexity even smart people can't work around without some truly > ridiculous kludges. I can write a (simple) shellscript, but I wouldn't dare write an initscript or even a daemontools runscript. > I have a theory on that. runit, s6, init-ng, etc never caught on > because sysvinit was considered good enough, and it was easier for the > average person to work around its rough edges rather than learn a new > init system. I recently needed something to run imapfilter and restart it in case it might exit, so I had a look at daemontools. I gave up quickly after I realised the amount of scaffolding required just to get daemontools itself running (additional top-level directories, are you kidding?). With systemd (v215) I had to write this unit file: ,----[ .config/systemd/user/imapfilter.service ] | [Unit] | Description=Unit to run imapfilter | | [Service] | Type=simple | ExecStart=/usr/bin/imapfilter | Restart=always | | [Install] | WantedBy=default.target `---- $ systemctl --user start imapfilter # to start it right away $ systemctl --user enable imapfilter # to have it start automatically on login (optional) # systemctl enable-linger <my user> # to enable my 'systemd --user' instance to run even if I'm not logged in. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic http://nuvreauspam.ro/gpg-transition.txt
signature.asc
Description: Digital signature