sysv | systemd | upstart |
---|---|---|
service foo start | systemctl start foo | service foo start |
service foo stop | systemctl stop foo | service foo stop |
service foo restart | systemctl restart foo | service foo restart |
service foo reload | systemctl reload foo | service foo reload |
service foo condrestart | systemctl condrestart foo | service foo condrestart |
service foo status | systemctl status foo | service foo status |
ls /etc/{,rc.d/}init.d/ | systemctl | ls /etc/{,rc.d/}init.d/ |
chkconfig foo on | systemctl enable foo | update-rc.d foo enable |
chkconfig foo off | systemctl disable foo | update-rc.d foo disable |
chkconfig foo | systemctl is-enabled foo | |
chkconfig --list | systemctl list-unit-files --type=service | service --status-all |
chkconfig foo --list | ls /etc/systemd/system/*.wants/foo.service | |
chkconfig foo --add | systemctl daemon-reload | update-rc.d foo defaults |