Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Before=pve-guests.service
[Service]
-#FIXME!!!
-Type=simple
-ExecStart=%LIBEXECDIR%/pve/pve-lxc-syscalld
+Type=notify
+ExecStart=%LIBEXECDIR%/pve-lxc-syscalld/pve-lxc-syscalld --system /run/pve/lxc-syscalld.sock
+RuntimeDirectory=pve
Restart=on-failure
[Install]
fn notify_systemd() -> StdIo::Result<()> {
let err = unsafe { sd_notify(0, c_str!("READY=1\n").as_ptr()) };
- if err == 0 {
+ if err >= 0 {
Ok(())
} else {
Err(StdIo::Error::from_raw_os_error(-err))