rc.d

  1. L

    Shell Custom rc.d script trouble

    I am using an open source project (Traccar) and they provide a rc script to start and stop the service https://www.traccar.org/freebsd/ This script doesn't work, I can easily start the server if I do: # cd /usr/local/traccar # java -jar tracker-server.jar conf/traccar.xml & However, I want to...
  2. B

    Other rc.subr function usage in rc.d script

    Hi, I have difficulties to understand the syntax to use rc.subr function and arguments. I would like to use run_rc_command in my rc.d script but how should I call for argument and use this function anyway? Is it a replacement for start_cmd= or should I do start_cmd=run_rc_command args? and...
  3. F

    Other Writing an rc script for gunicorn & django

    Hello all, I'm looking to deploy a Django application onto a FreeBSD 11.1 server, I've read a number of articles about using www/py36-gunicorn to provide the communications between www/nginx and Django, and brief trials appear successful. I'm now looking to make a service that I can service...
  4. T

    Python rc.d with daemon(8), python and virtualenv

    Hi, I'd like to create an rc.d script that uses daemon(8) to manage a python(3) script with dependencies from virtualenv (daemonization, logging and be automatically restarted on exit). I am not sure what's the right way to approach this. My initial version used the script as command...
  5. V

    Solved no one service started successfully

    Hello recently I upgrade from 11.0 to root@dell:/home/vic # freebsd-version -u 11.1-RELEASE-p1 and now no one service started successfully during booting. Reason look come from root@dell:/home/vic # service syslogd onestart /etc/rc.d/syslogd: DEBUG: pid file (/var/run/syslog.pid): not...
  6. T

    /etc/rc.d/bluetooth - enable or disable variable?

    When I run the bluetooth script I notice it doesn't have any variables: root@www# service bluetooth rcvar # bluetooth # compare to another random service root@www# service ntpd rcvar # ntpd # ntpd_enable="YES" # (default: "") so, most other services have an "enable" variable that I can put...
  7. K

    Solved rc.d scripting assistance for u2eve

    Hi, I am using ids-tools to convert read unified2 log files from security/snort and output events as JSON. I've written a rc.d script to start ids-tools at start-up but it doesn't appear to work. This is the rc.d script I've drafted. I am terrible at shell scripting. Could someone help me...
  8. R

    rc.d default startup order for packages

    I have a very basic system setup comprising apache24, mysql-server and tomcat8. But it won't boot properly. Tomcat is started before mysql-server and the web app fails to start. rcorder /etc/rc.d/* /usr/local/etc/rc.d/* gives: ... /etc/rc.d/LOGIN /usr/local/etc/rc.d/tomcat8...
  9. P

    Other No chdir happening for rc.d script

    I've hit a wall trying to understand why the ${name}_chdir variable is not working for me. Finally, after letting my script run with -xv, I see that the cd command is not even being run in my case. Here is my script: #!/bin/sh set -xv exec 1>/tmp/awning.rclog 2>&1 # REQUIRE: NETWORKING...
  10. ericx

    /boot/entropy and zfs bootpool

    When installing a new FreeBSD 11.0 with zfs root, the installer creates 2 zfs pools and puts the contents of /boot in zfs:bootpool/boot. /boot is a symlink pointing to /bootpool/boot Normal boot process then does not mount bootpool (nice little security extra there) so the /boot symlink points...
  11. CleanCut

    Solved Why won't my "new-style" rc script start at boot?

    On pfSense 2.2.4 (FreeBSD 10.1), my custom init script filebeat_wrapper won't start at boot. According to rcorder it should start right after boot: # rcorder /etc/rc.d/* /usr/local/etc/rc.d/* (snip) /etc/rc.d/SERVERS /etc/rc.d/DAEMON /etc/rc.d/LOGIN /usr/local/etc/rc.d/filebeat_wrapper (snip)...
  12. Hornpipe2

    Using the base Subversion server

    As of FreeBSD 10.0, a "light" version of Subversion has been integrated into the base system. It includes most of the svn tools, though the filenames have been changed (e.g. "svnlite" instead of "svn", "svnliteserve" instead of "svnserve" etc.) Most people probably would use this for the...
  13. M

    Automation of creating rc.d

    Hey Forum, Lately I often need to create rc.d for a new services, and for educational purpose or thin rc.d profiling it's ok, moreover over time it takes less effort and time and result is more satisfying. But sometimes I just want a simple daemon to be ported and waste my time to do repetitive...
  14. F

    Solved Troubleshooting service startup

    Good afternoon all, I've installed Gitlab into a FreeBSD 10.2 Jail and got everything working nicely, except for the fact that when the Jail starts, Gitlab doesn't...All of the other related services start (redis, postgresql, and nginx). The rc script I'm using is from here and I've placed it...
  15. justrjlewis

    rc.d daemon not processing command flags

    I started working with a great web server called caddy and started working on an rc.d script to get it running as a service. I put together a script that mostly worked seen here. The bug in this original script was that the service would start on boot/reboot, but it didn’t play well with the...
  16. DimMan

    Solved rc.d script not run at startup

    I try start circus via rc.d script I create script [root@comp ~]# cat /usr/local/etc/rc.d/circusd #!/bin/sh . /etc/rc.subr name="circusd" rcvar=circusd_enable start_cmd="${name}_start" stop_cmd=":" load_rc_config $name : ${circusd_enable="NO"} ...
  17. patpro

    PF How to handle PF rules for process launching after PF (openvpn for example)?

    Hello, On various servers, I'm facing problems with processes like security/openvpn or Jails and their interaction with pf. They require specific rules involving network interface or IP address that do not exists yet on the system when pf starts. Hence for security/openvpn I've got this at...
  18. rfraile

    Solved Execute rc.d script at shutdown

    Hello, I'm trying to install a rc.d script to run at startup and shutdown, but it only run at startup. Reducing the script to a skeleton test, I have the following: #!/bin/sh - # PROVIDE: test # REQUIRE: FILESYSTEMS # KEYWORD: nojail shutdown . /etc/rc.subr name="test" rcvar="test_enable"...
Back
Top