<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">I have a service in which I log vmstat info in a H2 database. Of-course this is only useful when H2 is actually running. So I have the following service file:<br><br clear="all"> [Unit]<br> Description=Logging vmstat to H2 Database<br> Requires=h2.service<br> After=h2.service<br> <br> [Service]<br> Type=simple<br> ExecStart=/home/cecil/bin/vmstatLog.sh<br> Restart=always<br> User=cecil<br> <br> [Install]<br> WantedBy=multi-user.target<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">It works insofar that when h2 stops, vmstatLog also stops. But when h2 is started again, vmstatLog does not start and needs to be started manually. What am I doing wrong?</div><br>-- <br><div class="gmail_signature">Cecil Westerhof</div>
</div>