Skip to content

Commit

Permalink
Import mxvlan.service
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed May 16, 2019
1 parent 9db11c1 commit 02775cd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,5 @@ install_data logrotate/logrotate.conf "$DESTDIR$sysconfdir/l
install_data logrotate/logrotate.service "$DESTDIR$systemdunitdir/logrotate.service"
install_data logrotate/logrotate.timer "$DESTDIR$systemdunitdir/logrotate.timer"
install_data misc_systemd_units/network.service "$DESTDIR$systemdunitdir/network.service"
install_data misc_systemd_units/mxvlan.service "$DESTDIR$systemdunitdir/mxvlan.service"
exit
16 changes: 16 additions & 0 deletions misc_systemd_units/mxvlan.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=MX VLAN Setup
Requires=network.service
After=network.service
Before=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
StandardOutput=syslog
ExecStart=/usr/sbin/mxvlanctl start
ExecStop=/usr/sbin/mxvlanctl stop

[Install]
WantedBy=network.target

0 comments on commit 02775cd

Please sign in to comment.