Hi,

I've added a new LS instance, 'liquidsoap128' and have attempted to load  
it via
a crontab. The code looks fine to me, and the absolute paths are correct.  
I have
no idea why it doesn't load properly. Any ideas what's going wrong?


*******

crontab

08 58 * * * 1-5 /usr/local/bin/liquidsoap -q -d  
/usr/local/etc/liquidsoap128.liq

*******


Error message

Line 1, char 2 before "/": Parse error.

To start liquidsoap successfully, I use the following code, inserted prior  
to the
offending code above, giving it enough time to load/execute the normal LS  
scripts.


56 08 * * 1-5 /usr/local/etc/rc.d/liquidsoap start


I've also edited the /usr/local/etc/rc.d script:


****

# PROVIDE: liquidsoap128
# REQUIRE: NETWORKING icecast2 shoutcast
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable liquidsoap:
#
# liquidsoap_enable="YES"
#

. /etc/rc.subr

sig_stop=KILL

name="liquidsoap128"
rcvar=`set_rcvar`

command="/usr/local/bin/liquidsoap"

load_rc_config $name

: ${liquidsoap128_enable:="YES"}
: ${liquidsoap_pidfile:="/var/run/liquidsoap/liquidsoap128.pid"}
: ${liquidsoap_config:="/usr/local/etc/liquidsoap/liquidsoap128.liq"}
: ${liquidsoap_user:="rcr"}
: ${liquidsoap_group:="wheel"}

required_files="${liquidsoap_config}"
command_args="-q -d ${liquidsoap128_config}"

run_rc_command "$1"

****


and enabled liquidsoap128 in /etc/rc.conf:


liquidsoap_enable="YES"
liquidsoap128_enable="YES"



I woulld like both scipts, liquidsoap.liq and liquidsoap128.liq, to be  
loaded with
one command, but it doesn't seem to be possible. I can load the crontab  
entry
manually cli and it works OK.

Any ideas what I doing wrong?

Thanks,
Andre



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to