Got systemctl restart to work locally

There were problems on my Ubuntu VM with the target run level that I was
using, so I went for the default. Now, if I restart my VM, the Bridgehead
is successfully started automatically.

Also added some status-generating commands to the run.sh and stop.sh
scripts, so that it looks like they are doing something.
This commit is contained in:
Gerhard Salvini
2024-07-18 12:31:42 +02:00
parent bb81617873
commit 520c560be0
3 changed files with 16 additions and 9 deletions

View File

@ -5,10 +5,10 @@ Description=Start ECDC Bridgehead
Type=simple
ExecStart=/srv/docker/bridgehead/restart_service.sh
ExecStop=/srv/docker/bridgehead/shutdown_service.sh
Restart=on-failure
Restart=always
RestartSec=36000
KillMode=mixed
[Install]
WantedBy=multi.user.target
WantedBy=default.target