Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: YAST PRINTER RESTSRT necessary after boot

  1. #1

    Default YAST PRINTER RESTSRT necessary after boot

    Since 42.2 printer don't work right away,

    I need always to start yast printer module and then it displays CUPS restart and my printers are back.

    Where do I get the normal behaviour back

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

    Default Re: YAST PRINTER RESTSRT necessary after boot

    Check cups.service status after boot
    Code:
    sudo systemctl status cups.service

  3. #3

    Default Re: YAST PRINTER RESTSRT necessary after boot

    Code:
    # systemctl status cups.service
    ● cups.service - CUPS Printing Service
       Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
       Active: inactive (dead)
    

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

    Default Re: YAST PRINTER RESTSRT necessary after boot

    Let's have a look at the cups.service configuration
    Code:
    cat /usr/lib/systemd/system/cups.service
    For a more indepth look at behind the scenes perhaps review these as well
    Code:
    sudo journalctl -u cups.service
    Code:
    sudo journalctl -b |grep cups

  5. #5

    Default Re: YAST PRINTER RESTSRT necessary after boot

    Code:
    cat /usr/lib/systemd/system/cups.service
    [Unit]
    Description=CUPS Printing Service
    After=network.target
    
    [Service]
    ExecStart=/usr/sbin/cupsd -f
    
    [Install]
    WantedBy=multi-user.target
    

    Code:
    journalctl -u cups.service
    -- Logs begin at Do 2015-01-15 14:00:49 HKT, end at Mi 2016-11-30 14:00:39 HKT. --
    Mär 22 16:27:29 linux-wcxd systemd[1]: Stopping CUPS Printing Service...
    Mär 22 16:27:29 linux-wcxd systemd[1]: Stopped CUPS Printing Service.
    -- Reboot --
    Mär 23 09:13:08 linux-wcxd systemd[1]: Starting CUPS Printing Service...
    Mär 23 09:13:08 linux-wcxd systemd[1]: Started CUPS Printing Service.
    Mär 23 09:16:28 linux-wcxd systemd[1]: Stopping CUPS Printing Service...
    Mär 23 09:16:29 linux-wcxd systemd[1]: Stopped CUPS Printing Service.
    -- Reboot --
    Mär 23 09:17:50 linux-wcxd systemd[1]: Starting CUPS Printing Service...
    Mär 23 09:17:50 linux-wcxd systemd[1]: Started CUPS Printing Service.
    -- Reboot --
    Mär 23 17:05:53 linux-wcxd systemd[1]: Starting CUPS Printing Service...
    Mär 23 17:05:53 linux-wcxd systemd[1]: Started CUPS Printing Service.
    Mär 23 17:12:58 linux-wcxd systemd[1]: Stopping CUPS Printing Service...
    Mär 23 17:12:58 linux-wcxd systemd[1]: Stopped CUPS Printing Service.
    -- Reboot --
    Mär 24 14:28:15 linux-wcxd systemd[1]: Starting CUPS Printing Service...
    Mär 24 14:28:15 linux-wcxd systemd[1]: Started CUPS Printing Service.
    Mär 24 14:28:43 linux-wcxd systemd[1]: Stopping CUPS Printing Service...
    Mär 24 14:28:43 linux-wcxd systemd[1]: Stopped CUPS Printing Service.
    -- Reboot --
    Mär 24 14:30:01 linux-wcxd systemd[1]: Starting CUPS Printing Service...
    Mär 24 14:30:01 linux-wcxd systemd[1]: Started CUPS Printing Service.
    Mär 24 14:30:22 linux-wcxd systemd[1]: Stopping CUPS Printing Service...
    Mär 24 14:30:22 linux-wcxd systemd[1]: Stopped CUPS Printing Service.
    -- Reboot --
    Mär 24 14:31:34 linux-wcxd systemd[1]: Starting CUPS Printing Service...                                                                                                           
    Mär 24 14:31:34 linux-wcxd systemd[1]: Started CUPS Printing Service.                                                                                                              
    Mär 24 14:44:59 linux-wcxd systemd[1]: Stopping CUPS Printing Service...
    Mär 24 14:44:59 linux-wcxd systemd[1]: Stopped CUPS Printing Service.
    -- Reboot --
    Mär 24 14:45:57 linux-wcxd systemd[1]: Starting CUPS Printing Service...
    Mär 24 14:45:57 linux-wcxd systemd[1]: Started CUPS Printing Service.
    Mär 24 16:40:58 linux-wcxd systemd[1]: Stopping CUPS Printing Service...
    Mär 24 16:40:58 linux-wcxd systemd[1]: Stopped CUPS Printing Service.
    -- Reboot --
    Mär 25 13:50:37 linux-wcxd systemd[1]: Starting CUPS Printing Service...
    Mär 25 13:50:37 linux-wcxd systemd[1]: Started CUPS Printing Service.
    Mär 25 13:53:02 linux-wcxd systemd[1]: Stopping CUPS Printing Service...
    Mär 25 13:53:02 linux-wcxd systemd[1]: Stopped CUPS Printing Service.
    -- Reboot --
    
    Code:
    journalctl -b |grep cups
    no output

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

    Default Re: YAST PRINTER RESTSRT necessary after boot

    Okay, this reminds me of a similar thread where similar CUPS behaviour was being observed.

    Execute these commands and report back...
    Code:
    systemctl status cups.socket
    Code:
    find /etc/systemd/system/ -iname "cups*"

  7. #7

    Default Re: YAST PRINTER RESTSRT necessary after boot

    Code:
    systemctl status cups.socket
    ● cups.socket
       Loaded: not-found (Reason: No such file or directory)
       Active: inactive (dead)
    
    Code:
     find /etc/systemd/system/ -iname "cups*"
    /etc/systemd/system/printer.target.wants/cups.service
    /etc/systemd/system/sockets.target.wants/cups.socket
    /etc/systemd/system/multi-user.target.wants/cups.path
    

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

    Default Re: YAST PRINTER RESTSRT necessary after boot

    Quote Originally Posted by max_spam View Post
    Code:
    systemctl status cups.socket
    ● cups.socket
       Loaded: not-found (Reason: No such file or directory)
       Active: inactive (dead)
    
    Code:
     find /etc/systemd/system/ -iname "cups*"
    /etc/systemd/system/printer.target.wants/cups.service
    /etc/systemd/system/sockets.target.wants/cups.socket
    /etc/systemd/system/multi-user.target.wants/cups.path
    
    Looks like you have socket activation configured for CUPS. Some users prefer to have cupsd running permanently (rather than on demand). If desired, you could remove those files then
    Code:
    systemctl daemon-reload
    Code:
    systemctl enable cups
    Reboot and check that cups.service is still active after booting complete.
    Last edited by deano_ferrari; 30-Nov-2016 at 02:18.

  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

    Default Re: YAST PRINTER RESTSRT necessary after boot

    FWIW, your experience is similar to this archlinux thread

    https://bbs.archlinux.org/viewtopic.php?id=216216

  10. #10

    Default solved: YAST PRINTER RESTSRT necessary after boot

    deano_ferrari Thank you for your help!

    After your steps I came to realise I should use brain 0.1 and check services.

    Code:
    YAST2 -> SYSTEM -> SERVICES ->  CUPS : start


    does the trick.


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •