-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import existing named.service unit file into repository
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
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|