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.
- 06-03-2008 #1Just 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:
What else shoud i try???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"
Thanks to everybody
See you
- 06-03-2008 #2Just 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


Reply With Quote
