<---- template headericclude ----->
How to disable a systemd service?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2010
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to disable a systemd service?

    Hi Fedora Users,
    how can I disable a systemd service? I tried:

    Code:
    systemctl disable sendmail.service
    but if I reboot my computer the service is once again enabled.

    Thanks japplo

  2. #2
    Join Date
    Jan 2010
    Posts
    8,205
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: How to disable a systemd service?

    I believe that in most, if not all cases, the usual chkconfig command will work.

    chkconfig sendmail off

    (Not on a Fedora box to test it at present, but pretty sure I used that to enable and disable services)

  3. #3
    Join Date
    Jun 2007
    Location
    Lake Mary, Florida
    Age
    59
    Posts
    1,088
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to disable a systemd service?

    Hello,

    Other way is to
    # setup --> system services

  4. #4
    Join Date
    Aug 2009
    Posts
    11,397
    Mentioned
    98 Post(s)
    Tagged
    0 Thread(s)

    Re: How to disable a systemd service?

    disabling it doesn't seem to work with sendmail.

    For some oddball reason, sendmail is also started up by the network manager service.

    The only way I was able to keep sendmail from starting, was to to completely remove sendmail from my system.

    yum remove sendmail

  5. #5
    tox Guest

    Re: How to disable a systemd service?

    you could always use

    services sendmail stop

    services sendmail off
    Last edited by tox; 4th September 2011 at 12:56 AM.

  6. #6
    Join Date
    Oct 2005
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to disable a systemd service?

    you can find systemd tutorial at http://fedoraproject.org/wiki/Systemd

  7. #7
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    11,362
    Mentioned
    87 Post(s)
    Tagged
    0 Thread(s)

    Re: How to disable a systemd service?

    Quote Originally Posted by detox
    you could always use

    services sendmail stop

    services sendmail off

    I think you mean

    chkconfig sendmail off

    for the second one there is no off argument to service sendmail

  8. #8
    tox Guest

    Re: How to disable a systemd service?

    Quote Originally Posted by marko
    I think you mean

    chkconfig sendmail off

    for the second one there is no off argument to service sendmail
    well thats all i used when i turned off bluetooth and worked the command i posted.

  9. #9
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    11,362
    Mentioned
    87 Post(s)
    Tagged
    0 Thread(s)

    Re: How to disable a systemd service?

    Quote Originally Posted by detox
    well thats all i used when i turned off bluetooth and worked the command i posted.
    I think it would work to do

    service sendmail stop
    chkconfig sendmail off
    (note no "s" on the end of service )
    Last edited by marko; 12th September 2011 at 07:43 PM.

Similar Threads

  1. Replies: 1
    Last Post: 18th March 2016, 08:05 PM
  2. Make service unit for systemd which runs screen
    By SvenVD in forum Using Fedora
    Replies: 0
    Last Post: 21st August 2011, 08:49 PM
  3. Writing new systemd service. How to STOP kdm daemon?
    By charlweed in forum Using Fedora
    Replies: 0
    Last Post: 1st August 2011, 09:58 PM
  4. Simple display of systemd service sequence
    By charlweed in forum Using Fedora
    Replies: 2
    Last Post: 13th July 2011, 05:34 AM
  5. Enable-Disable Service
    By sabhara in forum Using Fedora
    Replies: 1
    Last Post: 12th September 2009, 12:17 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]