Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    ShellScript Iniciando com o pfSense

    Portuguese
    2
    4
    334
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hunterjn last edited by

      Bom dia a todos.

      Eu gostaria de um auxílio de vocês.. Qual seria a melhor forma de colocar um ShellScript para iniciar junto do sistema operacional do pfSense?? Deixá-lo rodando como um serviço..

      EDIT: Também poderia ser na cron, com algo como @reboor, mas ainda não fiz e não sei o que seria melhor.

      Abraços.  :-* :-*

      1 Reply Last reply Reply Quote 0
      • B
        brunok last edited by

        Tem um pacote "ShellCmd" que através dele você consegue inserir um script para iniciar junto do SO.

        Esta é a maneira mais fácil, sem precisar mexer no shell.

        1 Reply Last reply Reply Quote 0
        • H
          hunterjn last edited by

          Obrigado pela dica Brunok, eu não tinha visto esse pacote.

          Para que eu possa adicionar um ShellScript que eu fiz, no campo "Command" eu iria colocar o caminho do meu Script? Saberia informar?

          Abraços.

          1 Reply Last reply Reply Quote 0
          • B
            brunok last edited by

            @hunterjn:

            Obrigado pela dica Brunok, eu não tinha visto esse pacote.

            Para que eu possa adicionar um ShellScript que eu fiz, no campo "Command" eu iria colocar o caminho do meu Script? Saberia informar?

            Abraços.

            Basta criar uma entrada do tipo shellcmd com a seguinte informação:

            sh /caminho/do/seu/script.sh
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Products

            • Platform Overview
            • TNSR
            • pfSense
            • Appliances

            Services

            • Training
            • Professional Services

            Support

            • Subscription Plans
            • Contact Support
            • Product Lifecycle
            • Documentation

            News

            • Media Coverage
            • Press
            • Events

            Resources

            • Blog
            • FAQ
            • Find a Partner
            • Resource Library
            • Security Information

            Company

            • About Us
            • Careers
            • Partners
            • Contact Us
            • Legal
            Our Mission

            We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

            Subscribe to our Newsletter

            Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

            © 2021 Rubicon Communications, LLC | Privacy Policy