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!