Skip to content

Commit

Permalink
mxrouter.service: Import existing file into repository
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Jun 20, 2023
1 parent 047ff3d commit 808f151
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ install_data misc_etc_files/cups/client.conf "$DESTDIR$sysconfdir/c
install_data misc_systemd_units/ip6.service "$DESTDIR$systemdunitdir/ip6.service"
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 mxrouter/mxrouter.service "$DESTDIR$systemdunitdir/mxrouter.service"

postinstall
exit
17 changes: 17 additions & 0 deletions mxrouter/mxrouter.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 808f151

Please sign in to comment.