im using a lagg failover device
with a usb ethernet adaptor
the issue is the lagg0 device doesnt pick up the ethernet device in ifconfig
( post at the bottom explains the problem in detail )
it should have this line under lagg0 in ifconfig
laggport: ue0 flags=5<MASTER,ACTIVE>
but it doesnt...
I've based the rc.d script on the odoo one. However I'm installing in a virtualenv.
From time to time the process crashes. However when doing /usr/local/etc/rc.d/odoo status it shows as running.
When I check the pid that is in /var/run there's no process with that pid.
I have set procname to...
I am trying to get forgejo running as a service in a jail. When I manually start forgejo as the git user it runs as expected, however attempting to get it to run with the included rc file provided by the ports package it errors out.
Forgejo Port
rc.d script
When I start forgejo manually it...
FreeBSD 14.0. Neither /usr/local/etc/rc.d/unbound, nor /etc/rc.d/local_unbound list syslogd among their requirements. So, if unbound service (either one) is started by setting respective X_enable="YES" in /etc/rc.conf, then it just so happens that unbound is started before syslogd. Which means...
I am trying to implement an rc.d service script that starts multiple processes. The exact number of processes is determined dynamically from an rc.conf variable like so:
dummy_process_count=5
I read the tutorial Practical rc.d scripting in BSD, but there is no example with multiple processes...
I am still struggling to create a working rc.d script for onedrive. covacat has explained that I need to explicitly define environment variables, but now I am facing another issue:
rc.d starts onedrive exactly as it should, but the program starts and stays in the foreground. Meaning: During the...
Hello, I am trying to set up a daemon for onedrive. It needs to be run as a specific user, because onedrive has to read the authentication token from the user home directory, and then synchronize into that directory.
However, ${onedrived_user="borysj"} does not do the trick. I see that the...
How should I override the start_precmd of an existing rc.d script? If the rc.d script contains load_rc_config ${name} towards the end of the script (e.g. right before run_rc_command "$1"), it would be a simple matter of creating a file /etc/rc.conf.d/myexample to override the start_precmd of the...
Hello all FreeBSD users,
With the intent of saving me time when I check in my FreeBSD server over SSH, I added a one-liner to my .profile that tells me which of the machine's configured services are alive and which ones are dead. It's working well and I thought I'd share.
#!/bin/sh
printf...
I am attempting to create two /usr/local/etc/rc.d services, using rc.subr(8) after reviewing https://docs.freebsd.org/en/articles/rc-scripting/. Service B's process must always run as root, while service A's process must always run as another less privileged user (some_user). The other user must...
Emacs can be run as a daemon using a flag: emacs --daemon. Then, all subsequent calls of emacsclient should connect to the server, saving startup time. FreeBSD's Emacs package doesn't seem to include any rc.d scripts so it's up to the user to procure one and that's what I'm trying to do.
I...
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...
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...
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...
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
#...
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" #...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.