Systemd and ConsoleKit
Systemd and ConsoleKit
Posted May 6, 2011 4:26 UTC (Fri) by Kamilion (subscriber, #42576)In reply to: Systemd and ConsoleKit by nowster
Parent article: Systemd and ConsoleKit
Makes sense. 90% of initscripts are boilerplate anyway.
Upstart and systemd are doing a great job to excise that bit of cancer from our bootup.
Can you honestly say the following upstart job isn't easier to understand than a full init shellscript? The equivalent systemd unit is one line shorter, too.
sudo tee /etc/init/nginx.conf <<-\EOA
# /etc/init/nginx.conf
# nginx - starts the nginx webserver
description "nginx"
start on (net-device-up and local-filesystems)
stop on runlevel [016]
pre-start exec /usr/sbin/nginx -t
expect fork
respawn
exec /usr/sbin/nginx
EOA
Yay, future!