[arch-general] [Cups and systemd] duplicated service file

Brock.Zheng goodmenzy at gmail.com
Mon Oct 29 21:55:08 EDT 2012


Hi all,

    I found that the package cups hav duplicated service file,
    Here is some cmdline interactivity:

       [root at system 09:47:09]$ pacman -Ql cups | grep service
       cups /usr/lib/systemd/system/cups.service
       cups /usr/lib/systemd/system/cupsd.service

       [root at system 09:47:48]$ diff cupsd.service cups.service
       gives no result.

       [root at system 09:46:35]$ cat cupsd.service
       [Unit]
       Description=CUPS Printing Service

       [Service]
       ExecStart=/usr/sbin/cupsd -f
       PrivateTmp=true

       [Install]
       Also=cups.socket cups.path
       WantedBy=printer.target
       [root at system 09:46:49]$ cat cups.service
       [Unit]
       Description=CUPS Printing Service

       [Service]
       ExecStart=/usr/sbin/cupsd -f
       PrivateTmp=true

       [Install]
       Also=cups.socket cups.path
       WantedBy=printer.target

       [root at system 09:46:31]$ systemctl  enable cupsd.service
       Failed to issue method call: No such file or directory

       [root at system 09:52:28]$ systemctl  enable cups.service
       ln -s '/usr/lib/systemd/system/cups.service' '/etc/systemd/system/printer.target.wants/cups.service'
       ln -s '/usr/lib/systemd/system/cups.socket' '/etc/systemd/system/sockets.target.wants/cups.socket'
       ln -s '/usr/lib/systemd/system/cups.path' '/etc/systemd/system/multi-user.target.wants/cups.path'

--
Brock Zheng <goodmenzy at gmail.com>
郑 祎

Software Enginner


More information about the arch-general mailing list