Это старая версия документа.


Командная строка

Действие Команда upstart Команда systemd Замечания
Start service start $job systemctl start $unit
Stop servicestop $jobsystemctl stop $unit
Restart servicerestart $jobsystemctl restart $unit
See status of servicesinitctl listsystemctl status
Check configuration is validinit-checkconf /tmp/foo.confsystemd-analyze verify <unit_file>
Show job environmentinitctl list-envsystemctl show-environment
Set job environment variableinitctl set-env foo=barsystemctl set-environment foo=bar
Remove job environment variableinitctl unset-env foosystemctl unset-environment foo
View job logcat /var/log/upstart/$job.logsudo journalctl -u $unit
tail -f job logtail -f /var/log/upstart/$job.logsudo journalctl -u $unit -f
Show relationship between servicesinitctl2dotsystemctl list-dependencies –allShows pstree-style output.

Ссылки