Guest User

Untitled

a guest
Dec 13th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. [Unit]
  2. Description=My service
  3. After=network.target rsyslog.service <sub-services>.service
  4.  
  5. [Service]
  6. Type=simple
  7. Restart=always
  8. PIDFile=/var/run/<service>.pid
  9. Environment=LOG_LEVEL=info LD_LIBRARY_PATH=/usr/lib/<service> PATH=/sbin:/usr/sbin:/bin:/usr/bin
  10. ExecStart=/usr/sbin/<service> -C /etc/<service>.xml
  11. ExecStop=/bin/kill -15 $MAINPID
  12.  
  13. [Install]
  14. WantedBy=multi-user.target
Add Comment
Please, Sign In to add comment