From 8452543d6705a398add60dc06d25a6a984e31304 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 20 Jun 2023 13:53:52 +0200 Subject: [PATCH] mxrouter.service: Import existing file into repository --- install.sh | 1 + mxrouter/mxrouter.service | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 mxrouter/mxrouter.service diff --git a/install.sh b/install.sh index c2f97e1..115596d 100755 --- a/install.sh +++ b/install.sh @@ -267,6 +267,7 @@ install_data misc_etc_files/cups/client.conf "$DESTDIR$sysconfdir/c install_data misc_etc_files/systemd/system/basic.target.d/want-network.conf \ "$DESTDIR$sysconfdir/systemd/system/basic.target.d/want-network.conf" install_data misc_systemd_units/ip6.service "$DESTDIR$systemdunitdir/ip6.service" +install_data mxrouter/mxrouter.service "$DESTDIR$systemdunitdir/mxrouter.service" postinstall exit diff --git a/mxrouter/mxrouter.service b/mxrouter/mxrouter.service new file mode 100644 index 0000000..4d6d576 --- /dev/null +++ b/mxrouter/mxrouter.service @@ -0,0 +1,17 @@ +[Unit] +Description=MX Router setup +Requires=network.service mxvlan.service +After=network.service mxvlan.service +Before=network.target +ConditionPathIsDirectory=/etc/local/mxrouter + +[Service] +Type=oneshot +RemainAfterExit=yes +StandardOutput=syslog +ExecStart=/usr/sbin/mxrouterctl start +ExecStop=/usr/sbin/mxrouterctl stop + +[Install] +WantedBy=network.target +