Skip to content

Instantly share code, notes, and snippets.

@Ulexus
Last active April 14, 2022 22:08
Show Gist options
  • Save Ulexus/072d2120eebf1975de16e86cd9b5fc07 to your computer and use it in GitHub Desktop.
Save Ulexus/072d2120eebf1975de16e86cd9b5fc07 to your computer and use it in GitHub Desktop.
Asterisk systemd unit
[Unit]
Description=Asterisk PBX And Telephony Daemon
After=network.target
[Service]
User=asterisk
ExecStart=/usr/sbin/asterisk -f -C /etc/asterisk/asterisk.conf
ExecStop=/usr/sbin/asterisk -rx 'core stop now'
ExecReload=/usr/sbin/asterisk -rx 'core reload'
Restart=always
RestartSec=10s
TimeoutStartSec=30
TimeoutStopSec=15
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment