0

I'm writing a systemd script for a backup software client called Retrospect. This software doesn't follow any kind of typical linux ways of doing things. Getting a status from the program means running retrocpl -status. This has information that is both important and not currently gathered by systemd automatically. Can it be added to the status output somehow?

[Service] 
ExecStart=/usr/local/retrospect/client/retroclient        
ExecStop=/usr/local/retrospect/client/retrocpl -stop
Restart=on-failure RestartSec=60s

I'm using Ubuntu 16.04 which has systemd 229.

$ systemd --version
systemd 229
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN
$ lsb_release -d
Description:    Ubuntu 16.04.1 LTS

EDIT: Removed errant information that Wieland pointed out. Thanks!

flickerfly
  • 1,581
  • 1
  • 11
  • 13
  • 1
    The ExecStatus you're looking at is a data structure, not a command. AFAIK systemd doesn't support what you want, even in version 231. – Wieland Aug 04 '16 at 21:47
  • Thank you, I appreciate the clarification, even if it does squelch my hope a little bit. :-) – flickerfly Aug 04 '16 at 21:56

1 Answers1

1

systemd has a protocol where applications can send messages to the service manager, that get displayed in the output of systemctl status. It has to be implemented in the application itself for best results. The application has to proactively transmit status notifications.

Further reading

JdeBP
  • 66,967
  • 12
  • 159
  • 343