Skip to content

Commit

Permalink
tree: Remove dependencies on network.service or network.target
Browse files Browse the repository at this point in the history
In the previous commit we made basic.target wait for
network-online.target. Individual services no longer need to specify a
requirement or an order after network.target or network.service becaues
they think they need network.
  • Loading branch information
donald committed Jun 20, 2023
1 parent 34aadc0 commit b1cb907
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 24 deletions.
4 changes: 0 additions & 4 deletions clusterd/clusterd.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[Unit]
Requires=network.target
After=network.target

[Service]
ExecStart=/usr/sbin/clusterd --daemon
Restart=always
Expand Down
2 changes: 0 additions & 2 deletions misc_systemd_units/admin-sshd.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[Unit]

After=network.target

ConditionHost=|bka.molgen.mpg.de

[Service]
Expand Down
2 changes: 1 addition & 1 deletion misc_systemd_units/eturnal.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]

Wants=epmd.service
After=epmd.service network.target
After=epmd.service
Documentation=https://eturnal.net/documentation/
Documentation=https://github.com/processone/eturnal/blob/1.4.1/README.md
Documentation=https://github.com/processone/eturnal/blob/1.4.1/CHANGELOG.md
Expand Down
2 changes: 1 addition & 1 deletion misc_systemd_units/named.service
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
After=network.service gateway.service mxmount.service automount.service
After=gateway.service mxmount.service automount.service

Before=mxstartup-mxvip.service
ConditionHost=wtf.molgen.mpg.de
Expand Down
2 changes: 0 additions & 2 deletions misc_systemd_units/pacbio-sshd.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[Unit]

After=network.target

ConditionHost=smrtlink.molgen.mpg.de

[Service]
Expand Down
4 changes: 0 additions & 4 deletions misc_systemd_units/reboot-notify.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[Unit]
Requires=network.target
After=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
Expand Down
2 changes: 1 addition & 1 deletion misc_systemd_units/sshd.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]

After=syslog.target network.target
After=syslog.target

[Service]
EnvironmentFile=/etc/local/mxhost.conf
Expand Down
2 changes: 1 addition & 1 deletion misc_systemd_units/unbound.service
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
After=network.service gateway.service
After=gateway.service

[Service]
Type=forking
Expand Down
2 changes: 0 additions & 2 deletions misc_systemd_units/xaruba.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[Unit]
After=network.service gateway.service mxmount.service
Before=network.target

ConditionHost=macheteinfach.molgen.mpg.de

Expand Down
3 changes: 1 addition & 2 deletions mxshadow/mxshadow.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Unit]
Requires=network.target
After=network.target

ConditionHost=wtf.molgen.mpg.de

[Service]
Expand Down
4 changes: 0 additions & 4 deletions netlog/netlog.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[Unit]
Requires=network.target
After=network.target

[Service]
ExecStart=/usr/sbin/netlog --daemon /var/log/messages /var/log/mail.log
Restart=always
Expand Down

0 comments on commit b1cb907

Please sign in to comment.