-
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.
Merge pull request #117 from mariux64/update-systemd-services-to-use-…
…conditionhost Update systemd services to use `ConditionHost=`
- Loading branch information
Showing
7 changed files
with
73 additions
and
3 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,18 @@ | ||
[Unit] | ||
|
||
Description=DHCP relay | ||
Requires=network.target | ||
After=network.target | ||
|
||
ConditionHost=bka.molgen.mpg.de | ||
|
||
[Service] | ||
|
||
ExecStart=/usr/sbin/dhcrelay -4 -d dhcp.molgen.mpg.de | ||
Restart=always | ||
StandardOutput=syslog | ||
|
||
[Install] | ||
|
||
WantedBy=multi-user.target | ||
|
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,7 @@ | ||
[Unit] | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
ExecStart=/usr/sbin/hostconfig --populate-node | ||
|
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,14 @@ | ||
[Unit] | ||
After=network.service gateway.service mxmount.service | ||
Before=network.target | ||
|
||
ConditionHost=macheteinfach.molgen.mpg.de | ||
|
||
[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 |
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,12 @@ | ||
[Unit] | ||
After=network.service gateway.service mxmount.service automount.service | ||
|
||
ConditionHost=wtf.molgen.mpg.de | ||
|
||
[Service] | ||
Type=forking | ||
ExecStart=/package/nis/sbin/rpc.yppasswdd -D /package/nis/src -e chsh | ||
|
||
[Install] | ||
WantedBy=network.target | ||
|
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 | ||
Before=network.target | ||
|
||
ConditionHost=wtf.molgen.mpg.de | ||
|
||
[Service] | ||
Type=forking | ||
Restart=always | ||
ExecStartPre=-/sbin/ip addr add 141.14.31.96/20 dev net03 | ||
ExecStart=/package/nis/sbin/ypserv | ||
ExecStopPost=-/sbin/ip addr del 141.14.31.96/20 dev net03 | ||
|
||
[Install] | ||
WantedBy=network.target | ||
|