Bug #8529
closedshellcmd does not run service
0%
Description
Hi,
I'm trying to collect statistic from pfSense with Prometheus node_exporter. node_exporter installed from with:
pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/node_exporter-0.15.2.txz
Also when I start service with service node_exporter start everything is Ok. I can see that metrics are collected and could build graph on remoter server.
here
To start service at the boot I used shellcmd service. Install it from pfSense web interface and run node_exported in shellcmd type. According to description here - https://doc.pfsense.org/index.php/Executing_commands_at_boot_time script present in /usr/local/etc/rc.d/ directory, executable and have .sh extension.
[2.4.3-RELEASE][root@local]/var/log: ls -la /usr/local/etc/rc.d/node_exporter
-r-xr-xr-x 1 root wheel 1939 Apr 6 07:15 /usr/local/etc/rc.d/node_exporter
[2.4.3-RELEASE][root@local]/var/log: ls -la /usr/local/etc/rc.d/node_exporter.sh
lrwxr-xr-x 1 root wheel 13 May 7 11:19 /usr/local/etc/rc.d/node_exporter.sh -> node_exporter
But after restart I see that service is not run. Type service node_exporter start and see everything is Ok.
Grep 'shell|node_exporter' in /var/log show nothing. Could you help wityh this issue?
Updated by Jim Pingle almost 7 years ago
- Category deleted (
Package System) - Status changed from New to Not a Bug
- Affected Version deleted (
2.4.3)
You appear to have something unrelated happening on your system causing some startup tasks to fail. There is no confirmed bug here, and this is not a support or discussion platform. Please post to the forum, pfSense subreddit, or mailing list for assistance in diagnosing your underlying issue.