File: dahdi-dynamic.service

package info (click to toggle)
dahdi-linux 1:2.11.1.0.20170917~dfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 8,280 kB
  • sloc: ansic: 125,177; perl: 2,395; sh: 1,133; makefile: 427; xml: 24
file content (19 lines) | stat: -rw-r--r-- 628 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# An example systemd unit to load / unload dynamic DAHDI spans
# /etc/dahdi/dynamic.conf should only contain dynamic= lines. The
# rest of the configuration should go into system.ocnf as per usual.

[Unit]
Description=Dynamic DAHDI devices
Documentation=man:dahdi_cfg(1) file:/usr/share/doc/dahdi/README.html
ConditionPathExists=/etc/dahdi/dynamic.conf

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/sbin/modprobe dahdi
ExecStop=/usr/sbin/dahdi_span_assignments remove ; \
	 /usr/sbin/dahdi_cfg -c /etc/dahdi/dynamic.conf -s
ExecStart=/usr/sbin/dahdi_cfg -c /etc/dahdi/dynamic.conf

[Install]
WantedBy=sysinit.target