Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi Fonz,
I suggest you make a new FFP dedicated forum. As now, your FFP is widely used on other NAS :-) Would be nice.
My question is:
I have managed to install FFP and Squeezecenter on a Zyxel NSA-220. Everything works perfectly fine, except that Squeezecenter doesn't start at boot.
I have created a slimserver.sh script and put it in /ffp/start and obviously changed permission. The script works just find. Start, stop, status and restart work fine.
Here is the script content:
#!/ffp/bin/sh # PROVIDES: squeezecenter # REQUIRES: mysqld.sh . /ffp/etc/ffp.subr name="slimserver" command="/slimserver/slimserver" slimserver_flags="--daemon --prefsfile /slimserver/prefs/server.prefs --user=squeezecenter --pidfile /var/run/slimserver.pid" start_cmd="slimserver_start" stop_cmd="slimserver_stop" status_cmd="slimserver_status" slimserver_start() { proc_start $command } slimserver_stop() { proc_stop slimserver } slimserver_status() { proc_status slimserver } run_rc_command "$1"
Is there any reason why it is not run at startup ?
Offline
On the dns-323 there's a log file written (ffp.log). If there's a log file on your box, please post the relevant parts. Also, check output of 'rcorder /ffp/start/*.sh' to check that mysql and slimserver are started in the correct order. In any case, you should try to capture messages during system boot (redirect output of /ffp/etc/rc to some log file).
Offline
Where is supposed to be the ffp.log file ?
and where can I check the startup order ? Is there any script where it is set ?
Cheers
Offline
superkikim wrote:
Where is supposed to be the ffp.log file ?
Don't know where it is on your device. You need to check Myzelf's scripts.
superkikim wrote:
and where can I check the startup order ? Is there any script where it is set ?
As I said:
rcorder /ffp/start/*.sh
Offline
Sorry. rcorder was not working, 'cause I made a mistake with the tmp folder. I had to reboot to have it working.
Error was:
# PROVIDES: squeezecenter # REQUIRES: mysqld.sh
must be:
# PROVIDE: squeezecenter # REQUIRE: mysqld
Cheers
Offline
Where is supposed to be the ffp.log file ?
It's in /dev/null. You'll have to edit /after_booting.sh. Change line
/sbin/chroot /mnt/usbstick /ffp/etc/rc >>/dev/null
to
/sbin/chroot /mnt/usbstick /ffp/etc/rc >>./ffp.log 2>&1
That should write to (chrooted) /ffp.log
Offline
fonz wrote:
So, does it start now automatically on boot?
Absolutely :-D
Tx for FFP by the way :-D Very helpful.
Offline