Fabian Deutsch, Mai 2015
$ exec gnome-terminal -e "vim $@" &> /dev/null &
$ systemctl status --all
$ systemctl status gdm.service
$ service gdm status
# cat /usr/lib/systemd/system/redis.service
$ systemctl cat redis.service
[Unit]
Description=A persistent key-value database
After=syslog.target network.target
[Service]
ExecStart=/usr/sbin/redis-server /etc/redis.conf
User=redis
Group=redis
[Install]
WantedBy=multi-user.target
$ wc -l /etc/init.d/* | sort -n
27 /etc/init.d/README
52 /etc/init.d/livesys-late
88 /etc/init.d/redis
…
458 /etc/init.d/ceph
594 /etc/init.d/functions
$ wc -l /usr/lib/systemd/system/*.service | sort -n
6 /usr/lib/systemd/system/tftp.service
7 /usr/lib/systemd/system/apg@.service
…
49 /usr/lib/systemd/system/getty@.service
59 /usr/lib/systemd/system/postgresql.service
/etc/systemd/system/*
/run/systemd/system/*
/usr/lib/systemd/system/*
$ systemctl daemon-reload
$ systemd-analyze
$ systemd-analyze plot > boot.svg
$ systemd-analyze dot > deps.dot ; \
dot -T png deps.dot
$ journalctl -k # dmesg
$ journalctl -u cron.service
$ systemctl set-default multi-user.target
$ systemctl get-default
$ systemctl status rc-local
rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static)
Active: inactive (dead)
fabiand@fedoraproject.org
dummdida.tumblr.com
@dummdida
CC Share-Alike