Closed drupaladmin closed 1 year ago
Simply releem-agent install and releem-agent start does not do anything. I have to use releem-agent -f in order connect to releem server, and meanwhile, I have no way to check whether it is running or not. I should have let you know that FreeBSD is quite different from Linux especially the default conf directory for all applications. I have to manually adjust a few lines in order to make things work, for example FreeBSD uses "mkfifo" instead of "mknod p", and the my.cnf is in /usr/local/etc/mysql/. Restarting mysql server should be "service mysql-server restart". Bash is not the default shell etc
After digging around,
"releem-agent install" will create the startup script in /usr/local/etc/rc.d and "releem-agent remove" will delete it:
# cat /usr/local/etc/rc.d/releem-agent
#!/bin/sh
#
# PROVIDE: releem-agent
# REQUIRE: networking syslog
# KEYWORD:
# Add the following lines to /etc/rc.conf to enable the releem-agent:
#
# releem-agent_enable="YES"
#
. /etc/rc.subr
name="releem-agent"
rcvar="releem-agent_enable"
command="/usr/local/bin/releem-agent"
pidfile="/var/run/$name.pid"
start_cmd="/usr/sbin/daemon -p $pidfile -f $command "
load_rc_config $name
run_rc_command "$1"
However, neither "releem-agent start" or "releem-agent stop" read the variable releem-agent_enable="YES" from /etc/rc.conf and does nothing. Currently I use "/usr/sbin/daemon -p /var/run/releem-agent.pid -f /usr/local/bin/releem-agent" to start, and kill the PID to stop, and seems it is working. (yes I put releem-agent as well as mysqlconfigurer.sh into /usr/local/bin because it is FreeBSD's standard, all user installed applications like httpd and mysqld are there)
Added feature request #206
Automatic installation after pasting the copied script, it immediately returns "Illegal variable name."
Manual installation:
I tried manual install, but still the installation failed at the step getting releem-agent:
When I tried to download https://releem.s3.amazonaws.com/v2/releem-agent-x86_64