From c0dbaa33257600d4bab52ef701852d40b8fc1308 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 30 Dec 2021 13:25:12 +0100 Subject: [PATCH] Add systemd servie file wanpipe@.service Using this systemd service/unit, one can have systemd call wanconfig at startup. --- wanpipe@.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 wanpipe@.service diff --git a/wanpipe@.service b/wanpipe@.service new file mode 100644 index 0000000..af34e3d --- /dev/null +++ b/wanpipe@.service @@ -0,0 +1,10 @@ +[Unit] +Description=Sangoma Wanpipe Span %i + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/sbin/wanconfig -f /etc/wanpipe/wanpipe%i.conf + +[Install] +WantedBy=multi-user.target