[ale] starting apcupsd on boot

Derek Atkins warlord at MIT.EDU
Fri Oct 3 11:37:48 EDT 2014


Jim Kinney <jim.kinney at gmail.com> writes:

> unless the install process is broken and didn't get the components in the
> proper places. It didn't show up in chkconfig so service won't start it.
> That's why the need to look for it with systemctl | egrep....

Sorry, Jim, but you're just wrong.  "chkconfig" wont show services
controlled by systemd.  However "service" will most defnitely still
affect them.  As proof here is an example from F20 against CUPS, which
is controlled by systemd.  As you can see, chkconfig has no knowledge of
CUPS, but "service" most certainly does:

$ chkconfig --list cups

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.

$ service cups status
Redirecting to /bin/systemctl status  cups.service
cups.service - CUPS Printing Service
   Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
   Active: active (running) since Wed 2014-09-03 10:04:01 EDT; 4 weeks 2 days ago
 Main PID: 1050 (cupsd)
   CGroup: /system.slice/cups.service
           └─1050 /usr/sbin/cupsd -f

Sep 21 13:36:56 securerf.ihtfp.org systemd[1]: Started CUPS Printing Service.
Sep 21 13:36:56 securerf.ihtfp.org systemd[1]: Started CUPS Printing Service.
Sep 21 13:36:58 securerf.ihtfp.org systemd[1]: Started CUPS Printing Service.
Sep 21 13:36:58 securerf.ihtfp.org systemd[1]: Started CUPS Printing Service.
Sep 23 22:08:47 securerf.ihtfp.org systemd[1]: Started CUPS Printing Service.
Sep 23 22:09:10 securerf.ihtfp.org systemd[1]: Started CUPS Printing Service.
Sep 23 22:09:10 securerf.ihtfp.org systemd[1]: Started CUPS Printing Service.
Sep 27 15:25:47 securerf.ihtfp.org systemd[1]: Started CUPS Printing Service.
Sep 27 15:25:49 securerf.ihtfp.org systemd[1]: Started CUPS Printing Service.
Sep 27 15:25:49 securerf.ihtfp.org systemd[1]: Started CUPS Printing Service.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the Ale mailing list