Advertisement
Guest User

Untitled

a guest
May 4th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. root@matrix:~# which service
  2. /usr/sbin/service
  3. root@matrix:~# file /usr/sbin/service
  4. /usr/sbin/service: POSIX shell script, ASCII text executable, with very long lines
  5.  
  6. root@matrix:~# grep upstart /usr/sbin/service
  7. # Operate against system upstart, not session
  8. && initctl version 2>/dev/null | grep -q upstart
  9. # Upstart configuration exists for this job and we're running on upstart
  10. # Action is a valid upstart action
  11.  
  12. root@matrix:~# grep systemd /usr/sbin/service
  13. is_systemd=
  14. if [ -d /run/systemd/system ]; then
  15. is_systemd=1
  16. # On systems using systemd, we just perform a normal restart:
  17. # A restart with systemd is already a full restart.
  18. if [ -n "$is_systemd" ]; then
  19. # When this machine is running systemd, standard service calls are turned into
  20. if [ -n "$is_systemd" ]
  21. # the systemd service file does not (yet) support reload for a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement