services daemons etc rc.d rc.conf

  1. I

    Proper location for daemon configuration files?

    When porting over a piece of software from Linux I want to have a file that allows me to set the default directory and user that the daemon should run as. In the FreeBSD universe where do these files live? Is /etc/default/service.conf still as valid as it is on Linux or is there a "better" place...
  2. B

    Pushing an rc Script to the Background, Login Before Completion

    I have an rc script to autostart some jails. My only problem is that I can't login to my system until all jails are started. I'm sure this answer is out there in the ether somewhere, but I can't seem to get the search criteria quite right, seeing as how there's lots of language about backgroudn...
  3. 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...
  4. 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...
  5. D

    Solved daemon not killing (grand)child process on service stop

    Hello, I tried to follow this tutorial to make a rc.d script for a program I would like to run as a service in one of my jails (In this case, a keycloak server - installed manually since it is not available as a port/package yet.)...
  6. Basil Hendroff

    rc.d script - autobooted or invoked interactively?

    Hello! First time poster. I'm new to rc.d scripting and have been studying the various resources and tinkering for several months now, but I'm not confident enough to answer the following question: Is it possible for an rc.d initialisation script to determine whether it has been autobooted...
  7. J

    Service runs with su, not with daemon

    Greetings, Hopefully I am posting in the right place, if not please let me know! The goal is to run a python framework (odoo) as a service via daemon inside a jail. The topology is as follows: [Internet] --> [Host] -- (pf)--> [Jail with HAProxy] --> [Jail with Odoo] For reference, I am using...
  8. justrjlewis

    Solved rc.d script for caddy server - not quite working

    I followed the tutorial for practical rc.d scripting to enable caddy web server on my DO FreeBSD 10.2 droplet. It's very simple, which is probably why it's not quite working as expected. So let me start by posting my questions, then I'll show my code. The pre-commit check list says: 2.Does...
  9. I

    'virecover' service: No information about it

    I have FreeBSD 10. When running service -e it shows the service /etc/rc.d/virecover A glance to /etc/defaults/rc.conf shows it with the following description: virecover_enable="YES" # Perform housekeeping for the vi(1) editor There is no information at all anywhere about this service...