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 Jul 4, 2023
1 parent 4fcc54c commit 5af77c3
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 @@ -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
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 5af77c3

Please sign in to comment.