SysVinitSystemdUpstart

27th September 2016 at 12:24pm
RH299CourseNotes TechnicalNotes
sysvsystemdupstart
service foo startsystemctl start fooservice foo start
service foo stopsystemctl stop fooservice foo stop
service foo restartsystemctl restart fooservice foo restart
service foo reloadsystemctl reload fooservice foo reload
service foo condrestartsystemctl condrestart fooservice foo condrestart
service foo statussystemctl status fooservice foo status
ls /etc/{,rc.d/}init.d/systemctlls /etc/{,rc.d/}init.d/
chkconfig foo onsystemctl enable fooupdate-rc.d foo enable
chkconfig foo offsystemctl disable fooupdate-rc.d foo disable
chkconfig foosystemctl is-enabled foo
chkconfig --listsystemctl list-unit-files --type=serviceservice --status-all
chkconfig foo --listls /etc/systemd/system/*.wants/foo.service
chkconfig foo --addsystemctl daemon-reloadupdate-rc.d foo defaults