Skip to content

Commit

Permalink
tree: Remove dependency on startup-tags-service
Browse files Browse the repository at this point in the history
... and remove a distracting "Description=" line and clean up whitespace.
  • Loading branch information
donald committed Jun 19, 2023
1 parent 5fc1393 commit 3a57476
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions misc_systemd_units/enable_overcommit_memory.service
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[Unit]
Wants=startup-tags.service
After=startup-tags.service

ConditionPathExists=|/node/tags/desktop
ConditionHost=|beebee-ate.molgen.mpg.de
ConditionHost=|icebear.molgen.mpg.de
ConditionHost=|flughafenberlinbrandenburgwillybrandt.molgen.mpg.de

[Service]

Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/sysctl vm.overcommit_memory=0
ExecStop=/sbin/sysctl vm.overcommit_memory=2

[Install]

WantedBy=multi-user.target
6 changes: 2 additions & 4 deletions mkmotd/motd.service
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
[Unit]
Description=Make motd
After=startup-tags.service

[Service]

Type=oneshot
ExecStart=/usr/sbin/mkmotd.pl
RemainAfterExit=yes

[Install]

WantedBy=multi-user.target

0 comments on commit 3a57476

Please sign in to comment.