Reason to use startproc, killproc and checkproc in Sys-V type init scripts in OpenSUSE












3















In OpenSUSE 11.4 sysvinit-tools package contains startproc, killproc and checkproc binaries which according to /etc/init.d/skeleton file and OpenSUSE documentation should be used in Sys-V type of init scripts. What is the idea of those binaries? Couldn't one achieve the same functionality of startproc, killproc and checkproc with nice, sudo, sleep and other similar tools?










share|improve this question














bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    3















    In OpenSUSE 11.4 sysvinit-tools package contains startproc, killproc and checkproc binaries which according to /etc/init.d/skeleton file and OpenSUSE documentation should be used in Sys-V type of init scripts. What is the idea of those binaries? Couldn't one achieve the same functionality of startproc, killproc and checkproc with nice, sudo, sleep and other similar tools?










    share|improve this question














    bumped to the homepage by Community 2 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      3












      3








      3








      In OpenSUSE 11.4 sysvinit-tools package contains startproc, killproc and checkproc binaries which according to /etc/init.d/skeleton file and OpenSUSE documentation should be used in Sys-V type of init scripts. What is the idea of those binaries? Couldn't one achieve the same functionality of startproc, killproc and checkproc with nice, sudo, sleep and other similar tools?










      share|improve this question














      In OpenSUSE 11.4 sysvinit-tools package contains startproc, killproc and checkproc binaries which according to /etc/init.d/skeleton file and OpenSUSE documentation should be used in Sys-V type of init scripts. What is the idea of those binaries? Couldn't one achieve the same functionality of startproc, killproc and checkproc with nice, sudo, sleep and other similar tools?







      opensuse sysvinit






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 8 '15 at 13:12









      MartinMartin

      4142571140




      4142571140





      bumped to the homepage by Community 2 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 2 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Let's first define the specific programs:
          startproc




          startproc: startproc and the LSB variant start_daemon check for all processes of the specified executable and starts it if no processes are found. startproc does not use the pid to search for a process but the full path of the corresponding program which is used to identify the executable




          killproc




          killproc sends signals to all processes that use the spec­ified executable. If no signal name is specified, the signal SIGTERM is sent. killproc does not use the pid to send a signal to a pro­cess but the full path of the corresponding program which is used to identify the executable




          checkproc




          checkproc checks for running processes that use the speci­fied executable. checkproc does not use the pid to verify a process but the full path of the corresponding program which is used to identify the executable.




          nice, sudo, sleep do nothing related to the above programs.



          Off course you could do the same logic from kill/start/checkproc in any scripting language (bash for ex.) or other compiled language. But the purpose of those programs is to offer this functionality to all users that need it, so they don't have to bother to write/rewrite the same logic on different distributions and different OSs.






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f248103%2freason-to-use-startproc-killproc-and-checkproc-in-sys-v-type-init-scripts-in-op%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Let's first define the specific programs:
            startproc




            startproc: startproc and the LSB variant start_daemon check for all processes of the specified executable and starts it if no processes are found. startproc does not use the pid to search for a process but the full path of the corresponding program which is used to identify the executable




            killproc




            killproc sends signals to all processes that use the spec­ified executable. If no signal name is specified, the signal SIGTERM is sent. killproc does not use the pid to send a signal to a pro­cess but the full path of the corresponding program which is used to identify the executable




            checkproc




            checkproc checks for running processes that use the speci­fied executable. checkproc does not use the pid to verify a process but the full path of the corresponding program which is used to identify the executable.




            nice, sudo, sleep do nothing related to the above programs.



            Off course you could do the same logic from kill/start/checkproc in any scripting language (bash for ex.) or other compiled language. But the purpose of those programs is to offer this functionality to all users that need it, so they don't have to bother to write/rewrite the same logic on different distributions and different OSs.






            share|improve this answer




























              0














              Let's first define the specific programs:
              startproc




              startproc: startproc and the LSB variant start_daemon check for all processes of the specified executable and starts it if no processes are found. startproc does not use the pid to search for a process but the full path of the corresponding program which is used to identify the executable




              killproc




              killproc sends signals to all processes that use the spec­ified executable. If no signal name is specified, the signal SIGTERM is sent. killproc does not use the pid to send a signal to a pro­cess but the full path of the corresponding program which is used to identify the executable




              checkproc




              checkproc checks for running processes that use the speci­fied executable. checkproc does not use the pid to verify a process but the full path of the corresponding program which is used to identify the executable.




              nice, sudo, sleep do nothing related to the above programs.



              Off course you could do the same logic from kill/start/checkproc in any scripting language (bash for ex.) or other compiled language. But the purpose of those programs is to offer this functionality to all users that need it, so they don't have to bother to write/rewrite the same logic on different distributions and different OSs.






              share|improve this answer


























                0












                0








                0







                Let's first define the specific programs:
                startproc




                startproc: startproc and the LSB variant start_daemon check for all processes of the specified executable and starts it if no processes are found. startproc does not use the pid to search for a process but the full path of the corresponding program which is used to identify the executable




                killproc




                killproc sends signals to all processes that use the spec­ified executable. If no signal name is specified, the signal SIGTERM is sent. killproc does not use the pid to send a signal to a pro­cess but the full path of the corresponding program which is used to identify the executable




                checkproc




                checkproc checks for running processes that use the speci­fied executable. checkproc does not use the pid to verify a process but the full path of the corresponding program which is used to identify the executable.




                nice, sudo, sleep do nothing related to the above programs.



                Off course you could do the same logic from kill/start/checkproc in any scripting language (bash for ex.) or other compiled language. But the purpose of those programs is to offer this functionality to all users that need it, so they don't have to bother to write/rewrite the same logic on different distributions and different OSs.






                share|improve this answer













                Let's first define the specific programs:
                startproc




                startproc: startproc and the LSB variant start_daemon check for all processes of the specified executable and starts it if no processes are found. startproc does not use the pid to search for a process but the full path of the corresponding program which is used to identify the executable




                killproc




                killproc sends signals to all processes that use the spec­ified executable. If no signal name is specified, the signal SIGTERM is sent. killproc does not use the pid to send a signal to a pro­cess but the full path of the corresponding program which is used to identify the executable




                checkproc




                checkproc checks for running processes that use the speci­fied executable. checkproc does not use the pid to verify a process but the full path of the corresponding program which is used to identify the executable.




                nice, sudo, sleep do nothing related to the above programs.



                Off course you could do the same logic from kill/start/checkproc in any scripting language (bash for ex.) or other compiled language. But the purpose of those programs is to offer this functionality to all users that need it, so they don't have to bother to write/rewrite the same logic on different distributions and different OSs.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 18 '15 at 13:52









                cristicristi

                448414




                448414






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f248103%2freason-to-use-startproc-killproc-and-checkproc-in-sys-v-type-init-scripts-in-op%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    濃尾地震

                    How to rewrite equation of hyperbola in standard form

                    No ethernet ip address in my vocore2