Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: I want to disable and remove a systemd service

  1. #11
    Join Date
    Sep 2012
    Posts
    6,981

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

    Quote Originally Posted by malcolmlewis View Post
    Code:
    nvidia-hibernate.service  nvidia-resume.service     nvidia-suspend.service
    http://download.nvidia.com/XFree86/L...anagement.html

  2. #12

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

    Quote Originally Posted by hcvv View Post
    And the masking worked. Thus your problem "I want to disable and remove a systemd service" was and still is: solved.
    Hi,
    Thanks for the link.
    The link was different from what was created in tumbleweed when the .run nvidia driver from nvidia download site is installed.
    This is the file created that is not the same in the link ;
    Code:
    /usr/share/doc/NVIDIA_GLX-1.0/samples/nvidia-persistenced-init.tar.bz2
    When I untar the tar.bz2 file above, this is what I got up to the last containing file that belongs to systemd.
    /usr/share/doc/NVIDIA_GLX-1.0/samples/nvidia-persistenced-init/systemd/nvidia-persistenced.service.template
    Thanks.
    People who do not break things first will never learn to create anything

  3. #13

    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
    The proprietary nvidia driver, I found out every install after a newer kernel arrives in tumbleweed triggers the nvidia services to start on boot.
    So tumbleweed I think is not at fault here, it's the proprietary nvidia driver.

    Probably I may need a guide to make this thing work instead of removing which this thread was intended, so I may need to start another thread
    to ask help for making it work.

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

  4. #14

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

    Quote Originally Posted by conram View Post
    The proprietary nvidia driver, I found out every install after a newer kernel arrives in tumbleweed triggers the nvidia services to start on boot.
    So tumbleweed I think is not at fault here, it's the proprietary nvidia driver.

    Probably I may need a guide to make this thing work instead of removing which this thread was intended, so I may need to start another thread
    to ask help for making it work.

    Thanks.
    I did some reading in the nvidia doc. and saw the option
    Code:
    "--no-systemd"
    when running the .run installer.
    Problem solved.
    People who do not break things first will never learn to create anything

  5. #15
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    3,273
    Blog Entries
    1

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

    Were you masking before stopping and disabling? NAICT, masking should prevent re-enabling (only) if first disabled before masking.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 15.2, TW, 15.3 & 13.1 on Haswell
    Secondary: eComStation (OS/2) &15.2 on i965P w/ Radeon
    Tertiary: Mageia, Fedora, Debian, more on Kaby Lake & older Intel, AMD, NVidia &&&&&

  6. #16

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

    Quote Originally Posted by mrmazda View Post
    Were you masking before stopping and disabling? NAICT, masking should prevent re-enabling (only) if first disabled before masking.
    It didn't work. What happens is every time there is new kernel update when reinstalling the .run nvidia driver, it automatically install and enable the systemd nvidia services.
    That's the reason why masking and disabling will not work because the nvidia installer reinstall it and automagically configure it to start on boot.
    I think it was working in regards to the machine, the problem is with the display that fails to wake up.
    People who do not break things first will never learn to create anything

  7. #17
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    3,273
    Blog Entries
    1

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

    I would try setting the immutable flag on the mask-unit file.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 15.2, TW, 15.3 & 13.1 on Haswell
    Secondary: eComStation (OS/2) &15.2 on i965P w/ Radeon
    Tertiary: Mageia, Fedora, Debian, more on Kaby Lake & older Intel, AMD, NVidia &&&&&

  8. #18
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    3,151

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

    Quote Originally Posted by conram View Post
    It didn't work. What happens is every time there is new kernel update when reinstalling the .run nvidia driver, it automatically install and enable the systemd nvidia services.
    That's the reason why masking and disabling will not work because the nvidia installer reinstall it and automagically configure it to start on boot.
    I think it was working in regards to the machine, the problem is with the display that fails to wake up.
    Change the preset: man systemd.preset
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  9. #19

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

    Well, there are three nvidia services and dealing with systemd configuration is not as easy vs.
    just adding in .run --no-systemd.

    Thanks all for your inputs, they are helpful and most appreciated.
    Those suggestions are really interesting and educational that I can
    visit when another problem arise with a similar situation.

    People in this forum are really good, patient and polite in helping others.
    Keep up the good work and have a lot of fun.
    People who do not break things first will never learn to create anything

Page 2 of 2 FirstFirst 12

Posting Permissions

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