I have a fresh installation of Ubuntu 14.04, and have not touched anything.
Cups is running, as reported by both ps and netstat.
There are /etc/init/cups.conf and /etc/init.d/cups, both of them seem to be able to start cups.
I used these ways to determine which init daemon started cups:
service cups status- "unknown job: cups"initctl status cups- "unknown job: cups"/etc/init.d/cups status- "cupsd is running"- Runlevel is 2, and there is no cups in
/etc/rc2.d
So the question is: which init daemon started cups? The traditional Debian init, or upstart?
If upstart was the one started cups, why initctl status cups cannot report cups status?
suto become root, and initctl/service don't report cups status. – Howard Aug 08 '14 at 13:12sudois. If you have started a root shell withsudo -iorsudo suor if you have actually logged in as root, theservicecommand works as expected. – terdon Aug 08 '14 at 13:13su.whoamiconfirms that I am in root's shell. – Howard Aug 08 '14 at 13:20su. – Howard Aug 08 '14 at 13:23serviceworks when in a full root shell butinitctldoes not. You're probably quite right and it has something to do with$UPSTART_SESSIONbut I don't really know why. That might merit a separate question. – terdon Aug 08 '14 at 13:26