Conflicts=xendomains.service
[Service]
-Type=notify
+Type=notify-reload
Environment=LIBVIRTD_ARGS="--timeout 120"
EnvironmentFile=-@initconfdir@/libvirtd
ExecStart=@sbindir@/libvirtd $LIBVIRTD_ARGS
virHookCall(VIR_HOOK_DRIVER_DAEMON, "-",
VIR_HOOK_DAEMON_OP_RELOAD, SIGHUP, "SIGHUP", NULL, NULL);
+ virSystemdNotifyReload();
if (virStateReload() < 0) {
VIR_WARN("Error while reloading drivers");
}
+ virSystemdNotifyReady();
/* Drivers are initialized again. */
g_atomic_int_set(&driversInitialized, 1);
After=apparmor.service
[Service]
-Type=notify
+Type=notify-reload
Environment=@SERVICE@_ARGS="--timeout 120"
EnvironmentFile=-@initconfdir@/@service@
ExecStart=@sbindir@/@service@ $@SERVICE@_ARGS