Guest User

Untitled

a guest
Dec 22nd, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. root@foo:~# systemctl status myglobal.target
  2. ● myglobal.target - My global target Bootstrap
  3. Loaded: loaded (/lib/systemd/system/myglobal.target; enabled)
  4. Active: active since Tue 2015-12-22 08:55:13 UTC; 10min ago
  5.  
  6. Dec 22 08:55:13 localhost systemd[1]: Reached target My global target Bootstrap.
  7. root@foo:~# cat /lib/systemd/system/bar.service
  8. [Unit]
  9. Description=bar
  10. Requires=baz.service
  11. After=baz.service
  12.  
  13. [Service]
  14. Type=oneshot
  15. ExecStart=/usr/sbin/bar
  16. TimeoutSec=0
  17.  
  18. [Install]
  19. WantedBy=myglobal.target
  20. root@foo:~# systemctl status bar.service
  21. ● bar.service - bar
  22. Loaded: loaded (/lib/systemd/system/bar.service; enabled)
  23. Active: inactive (dead)
  24. root@foo:~# ls /etc/systemd/system/myglobal.target.wants/
  25. baz.service bar.service
  26. root@foo:~#
Advertisement
Add Comment
Please, Sign In to add comment