Код: Выделить всё
[Unit]
Description=CUPS Printing Service
[Service]
ExecStart=/usr/sbin/cupsd -f
PrivateTmp=true
KillMode=none
[Install]
Also=cups.socket cups.path
WantedBy=printer.target
Код: Выделить всё
[root@sokoloff system]# ps -A | grep cupsd
29461 ? 00:00:00 cupsd
[root@sokoloff system]# systemctl status cups
● cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Чт 2016-03-03 21:12:03 MSK; 2min 7s ago
Main PID: 29461 (cupsd)
CGroup: /system.slice/cups.service
└─29461 /usr/sbin/cupsd -f
мар 03 21:12:29 sokoloff.int systemd[1]: Started CUPS Printing Service.
[root@sokoloff system]# systemctl stop cups
Warning: Stopping cups.service, but it can still be activated by:
cups.socket
cups.path
[root@sokoloff system]# systemctl status cups
● cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Чт 2016-03-03 21:14:19 MSK; 3s ago
Main PID: 29461
CGroup: /system.slice/cups.service
└─29461 /usr/sbin/cupsd -f
мар 03 21:14:19 sokoloff.int systemd[1]: Stopped CUPS Printing Service.
мар 03 21:14:19 sokoloff.int systemd[1]: Stopping CUPS Printing Service...
[root@sokoloff system]# ps -A | grep cupsd
29461 ? 00:00:00 cupsd
Код: Выделить всё
[root@sokoloff system]# systemctl start cups
[root@sokoloff system]# systemctl status cups
● cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Чт 2016-03-03 21:14:41 MSK; 5s ago
Main PID: 30901 (cupsd)
CGroup: /system.slice/cups.service
├─29461 /usr/sbin/cupsd -f
└─30901 /usr/sbin/cupsd -f
мар 03 21:14:41 sokoloff.int systemd[1]: Started CUPS Printing Service.
мар 03 21:14:41 sokoloff.int systemd[1]: Starting CUPS Printing Service...
[root@sokoloff system]# ps -A | grep cupsd
29461 ? 00:00:00 cupsd
30901 ? 00:00:00 cupsd
Код: Выделить всё
[root@sokoloff system]# ps -A | grep cupsd
4955 ? 00:00:00 cupsd
[root@sokoloff system]# systemctl status cups
● cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Чт 2016-03-03 21:28:03 MSK; 16s ago
Main PID: 4955 (cupsd)
CGroup: /system.slice/cups.service
└─4955 /usr/sbin/cupsd -f
мар 03 21:28:04 sokoloff.int systemd[1]: Started CUPS Printing Service.
[root@sokoloff system]# systemctl stop cups
Warning: Stopping cups.service, but it can still be activated by:
cups.socket
cups.path
[root@sokoloff system]# systemctl status cups
● cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Чт 2016-03-03 21:28:25 MSK; 3s ago
Process: 4955 ExecStart=/usr/sbin/cupsd -f (code=exited, status=0/SUCCESS)
Main PID: 4955 (code=exited, status=0/SUCCESS)
мар 03 21:28:25 sokoloff.int systemd[1]: Stopping CUPS Printing Service...
мар 03 21:28:25 sokoloff.int systemd[1]: Stopped CUPS Printing Service.
[root@sokoloff system]# ps -A | grep cupsd
[root@sokoloff system]# systemctl start cups
[root@sokoloff system]# systemctl status cups
● cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Чт 2016-03-03 21:28:40 MSK; 2s ago
Main PID: 5329 (cupsd)
CGroup: /system.slice/cups.service
└─5329 /usr/sbin/cupsd -f
мар 03 21:28:40 sokoloff.int systemd[1]: Started CUPS Printing Service.
мар 03 21:28:40 sokoloff.int systemd[1]: Starting CUPS Printing Service...
[root@sokoloff system]# ps -A | grep cupsd
5329 ? 00:00:00 cupsd