-
Notifications
You must be signed in to change notification settings - Fork 25
How to work with systemd based services
Harish Kumar edited this page Mar 1, 2017
·
3 revisions
- Stop/start/restart services
$ systemctl status contrail-api
$ systemctl stop contrail-api
$ systemctl restart contrail-api
- See stdout/stderr output from services
Systemd log stdout and stderror for all services to journal
$ journalctl -u contrail-api
e.g to see what happened while running contrail-ansible to setup the container by running
$ journalctl -u contrail-ansible
- Systemd service file location
systemd service files are located in /etc/systemd/system/ directory. Some of the system services are also there in /lib/systemd/system/ directory.
Copyright (c) 2018 Juniper Networks, Inc. All rights reserved