diff --git a/bin/systemd.dart b/bin/systemd.dart index 642c506d..63761397 100644 --- a/bin/systemd.dart +++ b/bin/systemd.dart @@ -27,6 +27,8 @@ void main() async { buffer.writeln("[Service]"); buffer.writeln("ExecStart=${program.fullPathToExecutable}"); buffer.writeln("TimeoutStopSec=3"); + buffer.writeln("Restart=on-success"); + buffer.writeln("RestartSec=1"); buffer.writeln(); buffer.writeln("[Install]"); buffer.writeln("WantedBy=multi-user.target");