rc.d

  1. D

    Solved Startup script not found

    I am trying to adapt the script found here to my purposes: https://www.nginx.com/resources/wiki/start/topics/examples/freebsdspawnfcgi/ Initially I followed the instructions and put the script in /etc/rc.local but the script was then being triggered before nginx and mysql loaded. I need it to...
  2. U

    Solved ezjails-admin flavour_setup() fails under FreeBSD 13

    So my initial problem was solved before I made this post (don't use - in $name) but I'm here to ask your help in aiding me to find the changes and showing me, where to look/read. I have multiple flavours one of them called basic-dns On first run /etc/rc.d/ezjail_flavour_basic-dns is called...
  3. I

    rc.d shell scripts: no extension vs. .sh

    I think I asked this question sometime ago, but I can't find the answer when searching for it. Anyway... First, I think I know the difference for startup shell scripts located in /etc/rc.d and /usr/local/etc/rc.d. The former is for system scripts while the latter is for user-installed scripts...
  4. A

    Solved Service does not exist or is not executable

    I am setting up a gemini protocol server written in go called "molly brown" link to git repository. I have placed its bianary file in /usr/local/sbin/molly-brown I placed its initscript at /etc/rc.d/molly This is its initscript: #!/bin/s#!/bin/s#!/bin/s#!/bin/s#!/bin/s#!/bin/s#!/bin/sh #...
  5. epopen

    net/ntp startup twice or more? in boot time.

    Hi all I have a question, can help debug? 😀 I using net/ntp for time synchronization. rc script file /usr/local/etc/rc.conf.d/ntpd added as below ntpd_enable="YES" ntpd_program="/usr/local/sbin/ntpd" # path to ntpd, if you want a different one. ntpd_config="/usr/local/etc/ntp.conf" #...
  6. vicmarconi

    Can't stop/restart program started by rc.d script (“is not running”)

    Hi folks, I've created this rc script to start gunicorn as a daemon on boot following this article (practical rc scripting). #!/bin/sh # PROVIDE: gunicorn_appleclue # REQUIRE: DAEMON . /etc/rc.subr name=gunicorn_appleclue rcvar=gunicorn_appleclue_enable...
  7. F

    Solved Using rc.d script with /usr/sbin/daemon to start and stop a script

    I am trying to write an rc.d script to start and stop a (Python) script. Starting the command seems to be working, but stopping it is not yet the way I want. My goal is to ensure the script receives a SIGTERM signal when it should shut down; that seems not to be the case; I think only the...
  8. F

    Solved Running Emacs as a daemon

    Hi guys, I would like to start emacs as a daemon at boot, using the configuration file of an user named "alex". Here is my rc.dscript, in /usr/local/etc/rc.d/emacsd #!/bin/sh # PROVIDE: emacsd # REQUIRE: login # after login # Emacs daemon . /etc/rc.subr name="emacsd" rcvar=emacsd_enable...
  9. K

    Solved How to get caddy file to autostart with Rc.d script

    I have a jail with caddy, mysql and wordpress running. I do not know how get the caddy service to autostart. Caddy runs with the command "caddy run ---config /path/to/Caddyfile" the Caddy service that I have kluged together runs and works perfectly "service caddy start" but will not auto-run...
  10. Hornpipe2

    Solved rc.d + pidfile + ${name}_user = permission errors?

    I'm trying to create an rc.d script for an existing port (games/ioquake3-server), which will allow it to launch at system start, and be managed by the rc system. This software is "interactive" (opens a console on stdin for control), so I have to launch it using daemon instead to detach and keep...
  11. 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...
  12. 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...
  13. forquare

    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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top