install_prereq: Add Arch Linux.
[asterisk/asterisk.git] / contrib / systemd / asterisk.service
1 [Unit]
2 Description=Asterisk PBX and telephony daemon.
3 After=network.target
4
5 [Service]
6 Type=notify
7 Environment=HOME=/var/lib/asterisk
8 WorkingDirectory=/var/lib/asterisk
9 User=asterisk
10 Group=asterisk
11 ExecStart=/usr/sbin/asterisk -mqf -C /etc/asterisk/asterisk.conf
12 ExecReload=/usr/sbin/asterisk -rx 'core reload'
13
14 #Nice=0
15 #UMask=0002
16 LimitCORE=infinity
17 #LimitNOFILE=
18 Restart=always
19 RestartSec=4
20
21 # Prevent duplication of logs with color codes to /var/log/messages
22 StandardOutput=null
23
24 PrivateTmp=true
25
26 [Install]
27 WantedBy=multi-user.target