How to tell systemd to stop restarting service? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite













This question already has an answer here:



  • How do you disable a service in systemd?

    1 answer



  • Systemd's StartLimitIntervalSec and StartLimitBurst never work

    2 answers



Is there a possibility to tell systemd to not restart a service? Or force systemd to restart a service maximum 3 times. If after 3 restarts service still needs to be restarted then systemd stops this service. I am trying changing .conf file (with StartLimitBurst option) but still without good results. Is there any other option with which I could do that?



When I see logs. There is something like: Unknown lvalue 'StartLimitBurst' in section 'Unit. Why is that?










share|improve this question













marked as duplicate by maulinglawns, andcoz, schily, Guss, Isaac Aug 23 at 17:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    This is actually the same as unix.stackexchange.com/questions/463917 .
    – JdeBP
    Aug 23 at 9:44














up vote
0
down vote

favorite













This question already has an answer here:



  • How do you disable a service in systemd?

    1 answer



  • Systemd's StartLimitIntervalSec and StartLimitBurst never work

    2 answers



Is there a possibility to tell systemd to not restart a service? Or force systemd to restart a service maximum 3 times. If after 3 restarts service still needs to be restarted then systemd stops this service. I am trying changing .conf file (with StartLimitBurst option) but still without good results. Is there any other option with which I could do that?



When I see logs. There is something like: Unknown lvalue 'StartLimitBurst' in section 'Unit. Why is that?










share|improve this question













marked as duplicate by maulinglawns, andcoz, schily, Guss, Isaac Aug 23 at 17:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    This is actually the same as unix.stackexchange.com/questions/463917 .
    – JdeBP
    Aug 23 at 9:44












up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:



  • How do you disable a service in systemd?

    1 answer



  • Systemd's StartLimitIntervalSec and StartLimitBurst never work

    2 answers



Is there a possibility to tell systemd to not restart a service? Or force systemd to restart a service maximum 3 times. If after 3 restarts service still needs to be restarted then systemd stops this service. I am trying changing .conf file (with StartLimitBurst option) but still without good results. Is there any other option with which I could do that?



When I see logs. There is something like: Unknown lvalue 'StartLimitBurst' in section 'Unit. Why is that?










share|improve this question














This question already has an answer here:



  • How do you disable a service in systemd?

    1 answer



  • Systemd's StartLimitIntervalSec and StartLimitBurst never work

    2 answers



Is there a possibility to tell systemd to not restart a service? Or force systemd to restart a service maximum 3 times. If after 3 restarts service still needs to be restarted then systemd stops this service. I am trying changing .conf file (with StartLimitBurst option) but still without good results. Is there any other option with which I could do that?



When I see logs. There is something like: Unknown lvalue 'StartLimitBurst' in section 'Unit. Why is that?





This question already has an answer here:



  • How do you disable a service in systemd?

    1 answer



  • Systemd's StartLimitIntervalSec and StartLimitBurst never work

    2 answers







debian systemd services






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 23 at 9:25









user307026

1




1




marked as duplicate by maulinglawns, andcoz, schily, Guss, Isaac Aug 23 at 17:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by maulinglawns, andcoz, schily, Guss, Isaac Aug 23 at 17:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 1




    This is actually the same as unix.stackexchange.com/questions/463917 .
    – JdeBP
    Aug 23 at 9:44












  • 1




    This is actually the same as unix.stackexchange.com/questions/463917 .
    – JdeBP
    Aug 23 at 9:44







1




1




This is actually the same as unix.stackexchange.com/questions/463917 .
– JdeBP
Aug 23 at 9:44




This is actually the same as unix.stackexchange.com/questions/463917 .
– JdeBP
Aug 23 at 9:44










1 Answer
1






active

oldest

votes

















up vote
0
down vote













You can use systemctl disable dummy.service and that service won start again when you boot up your machine. If you want to use that service again, you have to enable it.



Regarding your "restart 3 times" query, you can see here.






share|improve this answer



























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You can use systemctl disable dummy.service and that service won start again when you boot up your machine. If you want to use that service again, you have to enable it.



    Regarding your "restart 3 times" query, you can see here.






    share|improve this answer
























      up vote
      0
      down vote













      You can use systemctl disable dummy.service and that service won start again when you boot up your machine. If you want to use that service again, you have to enable it.



      Regarding your "restart 3 times" query, you can see here.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        You can use systemctl disable dummy.service and that service won start again when you boot up your machine. If you want to use that service again, you have to enable it.



        Regarding your "restart 3 times" query, you can see here.






        share|improve this answer












        You can use systemctl disable dummy.service and that service won start again when you boot up your machine. If you want to use that service again, you have to enable it.



        Regarding your "restart 3 times" query, you can see here.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 23 at 9:40









        Apollonius

        85




        85












            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)