From 5af77c3f78eb3f704197fd851bf4f5483ddb43a4 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 a8a4153e..7e682503 100755 --- a/install.sh +++ b/install.sh @@ -263,6 +263,7 @@ install_data misc_etc_files/request-key.d/id_resolver.conf \ install_symlink /etc/local/access.conf "$DESTDIR$sysconfdir/security/access.conf" install_data misc_etc_files/cups/client.conf "$DESTDIR$sysconfdir/cups/client.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 00000000..4d6d5765 --- /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 +