[SOLVED] cupsd starts at boot even when I disabled the service
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
service cups status
● cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; disabled; vendor preset: en
Active: active (running) since Wed 2019-05-01 08:39:12 EDT; 9s ago
Docs: man:cupsd(8)
Main PID: 3458 (cupsd)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/cups.service
└─3458 /usr/sbin/cupsd -l
It shows it is was disable in RED, But it shows active and running. Next, I ran the other commands
sudo systemctl stop cups dmesg | grep -i cups
sudo systemctl disable cups
Synchronizing state of cups.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable cups
dmesg | grep -i cups
No output from dmesg after stopping and disabling cups
I rebooted again and it is active and running again. lol
The systemctl disable command prevents auto-starting of the service at boot, but it doesn't prevent the service from being started. If the service is a dependency of another service, it will be started when that other service is started.
To completely prevent a service from starting, you can mask it, but you should be very careful with that because I've read that unmasking may not work reliably, so it can be difficult to restore the service if necessary. Masking completely disables a service by making its unit file a symlink to /dev/null, which means there is no way to start the service, so even it's a dependency, it won't be able to start.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.