Hello,
I've set up Webgrab++ inside jail on TrueNas and is working fine but I do have issue when configuring autostart.
Here is what I've done:
Set up rc.d script:
#!/bin/sh
. /etc/rc.subr
name=webgrab
rcvar=webgrab_enable
start_cmd="${name}_start"
stop_cmd=":"
load_rc_config $name
webgrab_start()
{
/usr/local/bin/bash /root/.wg++/run.sh
}
run_rc_command "$1"
Made it executable
root@webgrab:/ # ls -la /etc/rc.d/webgrab
-rwxrwxrwx 1 root wheel 212 Dec 3 11:14 /etc/rc.d/webgrab
Added line to /etc/rc.conf
webgrab_enable="YES"
If I run it looks fine
root@webgrab:/usr/local/etc # /etc/rc.d/webgrab start
WebGrab+Plus/w MDB & REX Postprocess -- version V3.2.0.0
If I start as service it errors out it's missing mono
root@webgrab:/usr/local/etc # service webgrab start
Mono required, but it's not installed.
But Mono is installed
root@webgrab:/usr/local/etc # mono -V
Mono JIT compiler version 5.20.1.34 (5.20.1.34 Sat Nov 6 07:16:40 UTC 2021)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
I am new to this scripting and already searched the forums and can't find answer. Any help is appreciated.
Thanks
thry the latest beta 3.2.2 from here
http://webgrabplus.com/download/sw
read the notes,there was a issue with mono with 3.2.0.0
i dont think that your issue though as it looks like webgrab tried to run but worth a try.
other than a few post you probably found from members regarding docker i dont think your going to get much help as most users use windows or pure linux.
your most likely better off asking on docker forums.
if you use it as a service, i would reccomend you create webgrab.service in /etc/systemd/system/ fill the typical service form, add in the requires "mono" then start and enable the service.
I would also reccomend in your actual script you cd directory before calling up the script.
Thanks guys,
Looks like it was a path variable missing in the script:
PATH="$PATH:/usr/local/bin"
All fine now