Skip to content

Commit

Permalink
Import existing named.service unit file into repository
Browse files Browse the repository at this point in the history
named.service is used on wtf only to start the bind named.

The ConditionPathExists=/node/startup-hostname/wtf is a workaround,
because we are running on an early systemd version which doesn't yet
support ConditionHost.
  • Loading branch information
donald authored and david committed Apr 9, 2018
1 parent 7caa037 commit fe48802
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 @@ -109,5 +109,6 @@ install_exec kvm_monitor/kvm_monitor.pl "$DESTDIR$udev_helperdi
install_data kvm_monitor/51-raritan-kvm.rules "$DESTDIR$udev_rulesdir/51-raritan-kvm.rules"
install_data misc_systemd_units/udev-settled.target "$DESTDIR$systemdunitdir/udev-settled.target"
install_exec mxmirror/mxmirror "$DESTDIR$usr_sbindir/mxmirror"
install_data misc_systemd_units/named.service "$DESTDIR$systemdunitdir/named.service"

exit
16 changes: 16 additions & 0 deletions misc_systemd_units/named.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
After=network.service gateway.service mxmount.service automount.service

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

[Service]
Type=forking
ExecStartPre=-/sbin/ip addr add 141.14.16.1/20 dev net03
ExecStart=/package/dns/2014-12-03/sbin/named -4 -c /package/dns/2014-12-03/etc/named.conf
ExecStopPost=-/sbin/ip addr del 141.14.16.1/20 dev net03

[Install]
WantedBy=network.target

0 comments on commit fe48802

Please sign in to comment.