1d75c0
diff -up cups-2.2.5/scheduler/main.c.systemd-socket cups-2.2.5/scheduler/main.c
1d75c0
--- cups-2.2.5/scheduler/main.c.systemd-socket	2017-10-17 18:59:53.732431498 +0200
1d75c0
+++ cups-2.2.5/scheduler/main.c	2017-10-17 19:02:13.132275861 +0200
1d75c0
@@ -691,8 +691,16 @@ main(int  argc,				/* I - Number of comm
1d75c0
 
1d75c0
 #ifdef HAVE_ONDEMAND
1d75c0
   if (OnDemand)
1d75c0
+  {
1d75c0
     cupsdAddEvent(CUPSD_EVENT_SERVER_STARTED, NULL, NULL, "Scheduler started on demand.");
1d75c0
-  else
1d75c0
+# ifdef HAVE_SYSTEMD
1d75c0
+    sd_notifyf(0, "READY=1\n"
1d75c0
+               "STATUS=Scheduler is running...\n"
1d75c0
+               "MAINPID=%lu",
1d75c0
+               (unsigned long) getpid());
1d75c0
+# endif /* HAVE_SYSTEMD */
1d75c0
+  } else
1d75c0
+
1d75c0
 #endif /* HAVE_ONDEMAND */
1d75c0
   if (fg)
1d75c0
     cupsdAddEvent(CUPSD_EVENT_SERVER_STARTED, NULL, NULL, "Scheduler started in foreground.");
1d75c0
diff -up cups-2.2.5/scheduler/org.cups.cupsd.path.in.systemd-socket cups-2.2.5/scheduler/org.cups.cupsd.path.in
1d75c0
--- cups-2.2.5/scheduler/org.cups.cupsd.path.in.systemd-socket	2017-10-13 20:22:26.000000000 +0200
1d75c0
+++ cups-2.2.5/scheduler/org.cups.cupsd.path.in	2017-10-17 18:59:53.732431498 +0200
1d75c0
@@ -1,6 +1,6 @@
1d75c0
 [Unit]
1d75c0
 Description=CUPS Scheduler
1d75c0
-PartOf=org.cups.cupsd.service
1d75c0
+PartOf=cups.service
1d75c0
1d75c0
 [Path]
1d75c0
 PathExists=@CUPS_CACHEDIR@/org.cups.cupsd
1d75c0
diff -up cups-2.2.5/scheduler/org.cups.cupsd.service.in.systemd-socket cups-2.2.5/scheduler/org.cups.cupsd.service.in
1d75c0
--- cups-2.2.5/scheduler/org.cups.cupsd.service.in.systemd-socket	2017-10-13 20:22:26.000000000 +0200
1d75c0
+++ cups-2.2.5/scheduler/org.cups.cupsd.service.in	2017-10-17 18:59:53.732431498 +0200
1d75c0
@@ -1,11 +1,13 @@
1d75c0
 [Unit]
1d75c0
 Description=CUPS Scheduler
1d75c0
 Documentation=man:cupsd(8)
1d75c0
+After=network.target
1d75c0
 
1d75c0
 [Service]
1d75c0
 ExecStart=@sbindir@/cupsd -l
1d75c0
-Type=simple
1d75c0
+Type=notify
1d75c0
+Restart=on-failure
1d75c0
 
1d75c0
 [Install]
1d75c0
-Also=org.cups.cupsd.socket org.cups.cupsd.path
1d75c0
+Also=cups.socket cups.path
1d75c0
 WantedBy=printer.target
1d75c0
diff -up cups-2.2.6/scheduler/org.cups.cupsd.socket.in.systemd-socket cups-2.2.6/scheduler/org.cups.cupsd.socket.in
1d75c0
--- cups-2.2.6/scheduler/org.cups.cupsd.socket.in.systemd-socket 2017-11-01 15:57:53.000000000 +0100
1d75c0
+++ cups-2.2.6/scheduler/org.cups.cupsd.socket.in  2018-09-19 12:38:00.630843246 +0200
1d75c0
@@ -1,6 +1,6 @@
1d75c0
 [Unit]
1d75c0
 Description=CUPS Scheduler
1d75c0
-PartOf=org.cups.cupsd.service
1d75c0
+PartOf=cups.service
1d75c0
 
1d75c0
 [Socket]
1d75c0
 ListenStream=@CUPS_DEFAULT_DOMAINSOCKET@
1d75c0
diff -up cups-2.2.6/scheduler/org.cups.cups-lpd.socket.systemd-socket cups-2.2.6/scheduler/org.cups.cups-lpd.socket
1d75c0
--- cups-2.2.6/scheduler/org.cups.cups-lpd.socket.systemd-socket 2017-11-01 15:57:53.000000000 +0100
1d75c0
+++ cups-2.2.6/scheduler/org.cups.cups-lpd.socket  2018-09-19 12:38:00.630843246 +0200
1d75c0
@@ -1,6 +1,6 @@
1d75c0
 [Unit]
1d75c0
 Description=CUPS LPD Server Socket
1d75c0
-PartOf=org.cups.cups-lpd.service
1d75c0
+PartOf=cups-lpd.service
1d75c0
 
1d75c0
 [Socket]
1d75c0
 ListenStream=515