-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasterisk.service
40 lines (33 loc) · 1012 Bytes
/
asterisk.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[Unit]
Description=Asterisk PBX and telephony daemon.
After=nss-lookup.target
[Service]
Type=simple
Environment=HOME=/var/lib/asterisk
WorkingDirectory=/var/lib/asterisk
User=asterisk
Group=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'
# 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