sbt-native-packager icon indicating copy to clipboard operation
sbt-native-packager copied to clipboard

How to configure WatchDog in systemd?

Open tpsaitwal opened this issue 1 year ago • 1 comments

  • What sbt version 1.9.2
  • What is your build system (e.g. Ubuntu, MacOS, Windows, Debian ) Linux
  • What package are you building (e.g. docker, rpm, ...) rpm
  • What version has your build tool (find out with e.g. rpm --version) 2.3.21
  • What is your target system (e.g. Ubuntu 16.04, CentOS 7) Linux

I want to setup WatchDog for my application. As per documentation WatchDogSec can be configured to check ping for active service instance and if not it will restart. I am not able to find out configuration of anything we can replace in LinuxPlugin or RpmPlugin or SystemdPlugin to enable WatchDogSec. Is there any such option availavle?

tpsaitwal avatar Nov 25 '24 09:11 tpsaitwal

Hi,

I assume this feature is simply missing. Here's the systemd template: https://github.com/sbt/sbt-native-packager/blob/main/src%2Fmain%2Fresources%2Fcom%2Ftypesafe%2Fsbt%2Fpackager%2Farchetypes%2Fsystemloader%2Fsystemd%2Fstart-template

You would need to add it there.

muuki88 avatar Nov 25 '24 20:11 muuki88