Debian Codegraph @

contrib/asterisk.service

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 [Unit]
2 Description=Asterisk PBX
3 Documentation=man:asterisk(8)
4 Wants=network-online.target
5 After=network-online.target
6
7 [Service]
8 Type=notify
9 ExecStart=__ASTERISK_SBIN_DIR__/asterisk -g -f -p -U asterisk -G asterisk
10 ExecReload=__ASTERISK_SBIN_DIR__/asterisk -rx 'core reload'
11 Restart=on-failure
12 RestartSec=1
13 WorkingDirectory=__ASTERISK_VARLIB_DIR__
14
15 # The following two lines are by default set to null so as to avoid
16 # unnecessary console output to syslog. However, if you to, you can
17 # further edit /etc/asterisk/logger.conf to log output to syslog.
18 StandardOutput=null
19 StandardError=null
20
21 # Extra settings:
22 # If you want to set them, you can add them to a file in the directory
23 # /lib/systemd/system/asterisk.service.d/ with the extension .conf.
24 # Example content:
25 #[Service]
26 #
27 # and following those two lines add directives or override existing
28 # directives. Some extra directives that may be useful:
29
30 # You can run a script to clean up after asterisk. An example script is
31 # included in contrib/scripts/asterisk_cleanup.
32 #ExecStopPost=/path/to/script
33
34 #Nice=0
35 #UMask=0002
36 #LimitCORE=infinity
37 #LimitNOFILE=
38
39 # safe_asterisk runs Asterisk in a virtual console. This allows easy
40 # access to the asterisk command-line without logging it. on the other
41 # hand, it allows anyone with physical access to the console full access
42 # to Asterisk. To enable this console, unrem the following lines and add
43 # '-c' to the ExecStart line above:
44 #TTYPath=/dev/tty9
45 #StandardInput=tty
46 #StandardOutput=tty
47 #StandardError=tty
48
49 # For more information on what these parameters mean see:
50 #
51 # http://0pointer.de/public/systemd-man/systemd.service.html
52 # http://0pointer.de/public/systemd-man/systemd.exec.html
53
54 [Install]
55 WantedBy=multi-user.target