mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
This change adds support for socket activation of certain SOCK_STREAM listeners in Asterisk: * AMI / AMI over TLS * CLI * HTTP / HTTPS Example systemd units are provided. This support extends to any socket which is initialized using ast_tcptls_server_start, so any unknown modules using this function will support socket activation. Asterisk continues to function as normal if socket activation is not enabled or if systemd development headers are not available during build. ASTERISK-27063 #close Change-Id: Id814ee6a892f4b80d018365c8ad8d89063474f4d
28 lines
536 B
Desktop File
28 lines
536 B
Desktop File
[Unit]
|
|
Description=Asterisk PBX and telephony daemon.
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
Environment=HOME=/var/lib/asterisk
|
|
WorkingDirectory=/var/lib/asterisk
|
|
User=asterisk
|
|
Group=asterisk
|
|
ExecStart=/usr/sbin/asterisk -mqf -C /etc/asterisk/asterisk.conf
|
|
ExecReload=/usr/sbin/asterisk -rx 'core reload'
|
|
|
|
#Nice=0
|
|
#UMask=0002
|
|
LimitCORE=infinity
|
|
#LimitNOFILE=
|
|
Restart=always
|
|
RestartSec=4
|
|
|
|
# Prevent duplication of logs with color codes to /var/log/messages
|
|
StandardOutput=null
|
|
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|