Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/bin/sh
  2. if ps -p1 | grep systemd ; then
  3. systemctl enable ActivityListener.service
  4. systemctl stop ActivityListener.service && systemctl start ActivityListener.service
  5. else
  6. initctl start ActivityListener || initctl restart ActivityListener
  7. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement