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

Thread: I want to disable and remove a systemd service

  1. #1

    Default I want to disable and remove a systemd service

    Hi,
    As the title says I want to completely disable and remove a service.
    The offending service is the three nvidia.services, it is the boot, hibernate and resume.
    Why I would like to remove it. In the Yast services manager I set this services to manual
    but every time I zypper dup it reverts to on boot, and ruins my display detection coming from suspend.
    I can see tots from the net but there might be a tumbleweed way of doing it, and I respect the experts advises here
    just to be sure that I will be doing it right.

    Thanks everyone in advance.
    People who do not break things first will never learn to create anything

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,868
    Blog Entries
    15

    Default Re: I want to disable and remove a systemd service

    Hi
    The easiest way is to stop, disable and mask....

    Code:
    systemctl stop <service1> <service2> etc
    systemdctl disable <service1>
    systemctl mask <service1>
    You can do them all at the same time as well...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: I want to disable and remove a systemd service

    Quote Originally Posted by malcolmlewis View Post
    Hi
    The easiest way is to stop, disable and mask....

    Code:
    systemctl stop <service1> <service2> etc
    systemdctl disable <service1>
    systemctl mask <service1>
    You can do them all at the same time as well...
    Thanks for your help.
    People who do not break things first will never learn to create anything

  4. #4

    Default Re: I want to disable and remove a systemd service

    During my zypper dup yesterday the problem came back again.
    I spent sometime figuring out what's causing the problem to re occur.
    Then I remember the nvidia services I masked. I unmask the services
    and set it to manually start and the problem was gone.
    Conclusion, just masking the services did not solve the problem.
    People who do not break things first will never learn to create anything

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,257

    Default Re: I want to disable and remove a systemd service

    Your problem was to disable and "remove" those services. You got an answer and it did so, Thus th problem as defined is solved.

    When you tried to do this disabling/masking to solve something different, that may be, but it wasn't the subject of this thread, nor do we know what it was.

    Thus when your original problem (for which you thought that the solution was to disable some services) is not solved by disabling those services, then better start a new thread with a title and description that describe your real problem.
    Henk van Velden

  6. #6

    Default Re: I want to disable and remove a systemd service

    Quote Originally Posted by hcvv View Post
    Your problem was to disable and "remove" those services. You got an answer and it did so, Thus th problem as defined is solved.

    When you tried to do this disabling/masking to solve something different, that may be, but it wasn't the subject of this thread, nor do we know what it was.

    Thus when your original problem (for which you thought that the solution was to disable some services) is not solved by disabling those services, then better start a new thread with a title and description that describe your real problem.
    I think my previous post is relevant in my opinion, malcolm's recommendation was to use mask and my post above was pertaining to masking which is part of this thread.
    It is just unfortunate that mask did not do the trick.
    Well sorry I can't resist, mask is trending all over the world.
    People who do not break things first will never learn to create anything

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,868
    Blog Entries
    15

    Default Re: I want to disable and remove a systemd service

    Quote Originally Posted by conram View Post
    I think my previous post is relevant in my opinion, malcolm's recommendation was to use mask and my post above was pertaining to masking which is part of this thread.
    It is just unfortunate that mask did not do the trick.
    Hi
    I would guess it's a service to rebuild the driver? I install the hardway (driver, cuda and cudnn) so never see those services
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,257

    Default Re: I want to disable and remove a systemd service

    Quote Originally Posted by conram View Post
    I think my previous post is relevant in my opinion, malcolm's recommendation was to use mask and my post above was pertaining to masking which is part of this thread.
    And the masking worked. Thus your problem "I want to disable and remove a systemd service" was and still is: solved.
    Henk van Velden

  9. #9

    Default Re: I want to disable and remove a systemd service

    Quote Originally Posted by malcolmlewis View Post
    Hi
    I would guess it's a service to rebuild the driver? I install the hardway (driver, cuda and cudnn) so never see those services
    Hi,
    That's strange, I always and still install the hardway and I have those services. I don't see those services before, and It's just showed
    just a month or two after a zypper dup on tumbleweed.
    People who do not break things first will never learn to create anything

  10. #10
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,868
    Blog Entries
    15

    Default Re: I want to disable and remove a systemd service

    Quote Originally Posted by conram View Post
    Hi,
    That's strange, I always and still install the hardway and I have those services. I don't see those services before, and It's just showed
    just a month or two after a zypper dup on tumbleweed.
    Hi
    Ahh, I found them they are all disabled....

    Code:
    nvidia-hibernate.service  nvidia-resume.service     nvidia-suspend.service
    For me I use nvidia as an offload device only, plus I don't suspend/hibernate....
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

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
  •