Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@foo:~# systemctl status myglobal.target
- ● myglobal.target - My global target Bootstrap
- Loaded: loaded (/lib/systemd/system/myglobal.target; enabled)
- Active: active since Tue 2015-12-22 08:55:13 UTC; 10min ago
- Dec 22 08:55:13 localhost systemd[1]: Reached target My global target Bootstrap.
- root@foo:~# cat /lib/systemd/system/bar.service
- [Unit]
- Description=bar
- Requires=baz.service
- After=baz.service
- [Service]
- Type=oneshot
- ExecStart=/usr/sbin/bar
- TimeoutSec=0
- [Install]
- WantedBy=myglobal.target
- root@foo:~# systemctl status bar.service
- ● bar.service - bar
- Loaded: loaded (/lib/systemd/system/bar.service; enabled)
- Active: inactive (dead)
- root@foo:~# ls /etc/systemd/system/myglobal.target.wants/
- baz.service bar.service
- root@foo:~#
Advertisement
Add Comment
Please, Sign In to add comment