File: dahdi-dynamic.service

package info (click to toggle)
dahdi-linux 1%3A3.1.0%2Bgit20230717~dfsg-10.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 8,668 kB
  • sloc: ansic: 116,367; perl: 2,391; sh: 1,157; makefile: 423; xml: 24
file content (19 lines) | stat: -rw-r--r-- 628 bytes parent folder | download | duplicates (4)
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