Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. [Unit]
  2. Description=Asterisk PBX and telephony daemon.
  3. Documentation=man:asterisk(8)
  4. Wants=network-online.target
  5. After=network.target
  6.  
  7. [Service]
  8. Type=simple
  9. Environment=HOME=/var/lib/asterisk
  10. WorkingDirectory=/var/lib/asterisk
  11. #User=asterisk
  12. #Group=asterisk
  13. Restart=on-failure
  14. RestartSec=1
  15. ExecStart=/usr/sbin/asterisk -U asterisk -G asterisk -g -f -C /etc/asterisk/asterisk.conf
  16. ExecStop=/usr/sbin/asterisk -rx 'core stop now'
  17. ExecReload=/usr/sbin/asterisk -rx 'core reload'
  18.  
  19. # To emulate some of the features of the safe_asterisk script, copy
  20. # this file to /etc/systemd/system/asterisk.service and uncomment one
  21. # or more of the following lines. For more information on what these
  22. # parameters mean see:
  23. #
  24. # http://0pointer.de/public/systemd-man/systemd.service.html
  25. # http://0pointer.de/public/systemd-man/systemd.exec.html
  26.  
  27. #Nice=0
  28. #UMask=0002
  29. #LimitCORE=infinity
  30. #LimitNOFILE=
  31. #Restart=always
  32. #RestartSec=4
  33.  
  34. # If you uncomment the following you should add '-c' to the ExecStart line above
  35.  
  36. #TTYPath=/dev/tty7
  37. #StandardInput=tty
  38. #StandardOutput=tty
  39. #StandardError=tty
  40.  
  41. PrivateTmp=true
  42.  
  43. [Install]
  44. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement