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 am trying to adapt the script found here to my purposes:
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:
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_program="/usr/local/sbin/ntpd" # path to ntpd, if you want a different one.
I've created this rc script to start gunicorn as a daemon on boot following this article (practical rc scripting).
# PROVIDE: gunicorn_appleclue
# REQUIRE: DAEMON
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...
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
# PROVIDE: emacsd
# REQUIRE: login # after login
# Emacs daemon
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...
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...
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...
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?
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...
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...
recently I upgrade from 11.0 to
root@dell:/home/vic # freebsd-version -u
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...
When I run the bluetooth script I notice it doesn't have any variables:
root@www# service bluetooth rcvar
compare to another random service
root@www# service ntpd rcvar
# (default: "")
so, most other services have an "enable" variable that I can put...
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...
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: