Find the answer to your Linux question:
Results 1 to 2 of 2
Hello to everybody again. using the examples from the handbook i did a script to execute a process (Sguil Server), but i have some problems. executing ./sguild start really starts ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Location
    Mexico
    Posts
    65

    Custom scrtip don't run on boot


    Hello to everybody again.

    using the examples from the handbook i did a script to execute a process (Sguil Server), but i have some problems.

    executing ./sguild start really starts 3 elements fir the Sguil Server, but:

    executing ./sguild status says "Sguild is not running"
    executing ./sguild stop says "Sguild is not running? (check /var/run/sguil/sguild.pid)", but sguild.pid exists

    also i added on rc.conf the line:
    sguild_enable="YES"
    but dont start on boot.

    i checked gdm and mysql-server scripts for guiding me, but i cant find the solution yet.

    This is the script:
    Code:
    #!/bin/sh
    
    #PROVIDE: sguild
    #REQUIRE: NETWORKING
    
    . /etc/rc.subr
    name="sguild"
    
    : ${sguild_enable="NO"}
    sguild_pidfile=${sguild_pidfile-"/var/run/sguil/sguild.pid"}
    
    load_rc_config $name
    rcvar=`set_rcvar`
    
    command="/usr/local/sguil/server/sguild"
    pidfile="${sguild_pidfile}"
    command_args="-P ${pidfile} -O /usr/local/lib/libtls.so -o -D"
    start_cmd="echo \"Starting ${name}.\"; /usr/bin/nice -5 ${command} ${command_args}"
    run_rc_command "$1"
    What else shoud i try???

    Thanks to everybody

    See you

  2. #2
    Just Joined!
    Join Date
    Oct 2007
    Location
    Mexico
    Posts
    65
    Resuelto / Resolvido / solved

    I also used a line like this:

    sguild_enable=${sguild_enable-"NO"}

    but don't work

    i have seen a little detail in other script that i found, we can see it in the next line:

    milter_greylist_enable=${milter_greylist_enable:-"NO"}

    :- little detail, or not???

    Now rest to find a way to kill the process, but is easier

    Thanks to everybody

    See you

Posting Permissions

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