mitigated restarting by having timer launch another service that just restarts the actual service

This commit is contained in:
jenz
2023-01-11 13:00:47 +01:00
parent de26140978
commit 0b300cf5f4
4 changed files with 25 additions and 12 deletions
@@ -0,0 +1,13 @@
[Unit]
Description=Restarts the ze servers systemctl service
After=network.target
[Service]
Type=simple
User=root
Group=root
Environment=PATH=/usr/lib/jvm/jdk-17/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:
ExecStart=/usr/bin/bash -c 'systemctl restart css_ze.service'
[Install]
WantedBy=default.target