Skip to content

Commit

Permalink
Add xaruba.service
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenzel committed Feb 11, 2020
1 parent e520f27 commit 1be35b6
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 @@ -93,6 +93,7 @@ install_data misc_systemd_units/gdm.service "$DESTDIR$systemdunitdi
install_data misc_systemd_units/startup-tags.service "$DESTDIR$systemdunitdir/startup-tags.service"
install_data misc_systemd_units/startup-hostname.service "$DESTDIR$systemdunitdir/startup-hostname.service"
install_data misc_systemd_units/unbound.service "$DESTDIR$systemdunitdir/unbound.service"
install_data misc_systemd_units/xaruba.service "$DESTDIR$systemdunitdir/xaruba.service"
install_exec mkmotd/mkmotd.pl "$DESTDIR$usr_sbindir/mkmotd.pl"
install_data mkmotd/motd.service "$DESTDIR$systemdunitdir/motd.service"
install_exec mxgrub/mxgrub "$DESTDIR$usr_sbindir/mxgrub"
Expand Down
16 changes: 16 additions & 0 deletions misc_systemd_units/xaruba.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
After=network.service gateway.service mxmount.service
Before=network.target

Wants=startup-hostname.service
After=startup-hostname.service
ConditionPathExists=/node/startup-hostname/macheteinfach

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/sbin/ip-nat start 141.14.27.49 443 172.19.109.10 4343 20 net04
ExecStop=/usr/sbin/ip-nat stop 141.14.27.49 443 172.19.109.10 4343 20 net04

[Install]
WantedBy=network.target

0 comments on commit 1be35b6

Please sign in to comment.