Am slowly reading through the Debian Handbook and have a question regarding to the systemctl command.
One of my goals in reading the handbook is to find ideas on to increase security of my Debian setup.
I've found that the Cups service is running and one measure of security is to turn off unneeded services.
So I typed the following to disable cups.service and listed also the results of the command:
Code: Select all
root@hostname:~#systemctl disable cups.service
Synchronizing state for cups.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d cups defaults
Executing /usr/sbin/update-rc.d cups disable
insserv: warning: current start runlevel(s) (empty) of script `cups' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (1 2 3 4 5) of script `cups' overrides LSB defaults (1).
Removed symlink /etc/systemd/system/sockets.target.wants/cups.socket.
Removed symlink /etc/systemd/system/paths.target.wants/cups.path.
Code: Select all
root@hostname:~# systemctl is-enabled cups.service
disabled
Code: Select all
root@hostname:~# systemctl is-enabled cups.service
disabled
Code: Select all
root@hostname:~# ps aux | grep cups
root 569 0.0 0.6 86108 6544 ? Ss 19:24 0:00 /usr/sbin/cupsd -f
root 586 0.0 0.4 71704 5088 ? Ss 19:24 0:00 /usr/sbin/cups-browsed
root 1412 0.0 0.2 12732 2124 pts/0 S+ 19:28 0:00 grep cups
Code: Select all
root@hostname:~# systemctl status cups.service
● cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; disabled)
Active: active (running) since Fri 2017-04-07 19:24:24 EDT; 4min 21s ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Main PID: 569 (cupsd)
CGroup: /system.slice/cups.service
└─569 /usr/sbin/cupsd -f
Apr 07 19:24:24 hostname systemd[1]: Started CUPS Printing Service.