Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=Asterisk PBX and telephony daemon.
- Documentation=man:asterisk(8)
- Wants=network-online.target
- After=network.target
- [Service]
- Type=simple
- Environment=HOME=/var/lib/asterisk
- WorkingDirectory=/var/lib/asterisk
- #User=asterisk
- #Group=asterisk
- Restart=on-failure
- RestartSec=1
- ExecStart=/usr/sbin/asterisk -U asterisk -G asterisk -g -f -C /etc/asterisk/asterisk.conf
- ExecStop=/usr/sbin/asterisk -rx 'core stop now'
- ExecReload=/usr/sbin/asterisk -rx 'core reload'
- # To emulate some of the features of the safe_asterisk script, copy
- # this file to /etc/systemd/system/asterisk.service and uncomment one
- # or more of the following lines. For more information on what these
- # parameters mean see:
- #
- # http://0pointer.de/public/systemd-man/systemd.service.html
- # http://0pointer.de/public/systemd-man/systemd.exec.html
- #Nice=0
- #UMask=0002
- #LimitCORE=infinity
- #LimitNOFILE=
- #Restart=always
- #RestartSec=4
- # If you uncomment the following you should add '-c' to the ExecStart line above
- #TTYPath=/dev/tty7
- #StandardInput=tty
- #StandardOutput=tty
- #StandardError=tty
- PrivateTmp=true
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement