K
K
kare20222018-05-13 07:57:06
FreeBSD
kare2022, 2018-05-13 07:57:06

What is the equivalent of systemd in FreeBsd?

I just can't understand - how can I make my application run at startup and restart after a crash in FreeBsd? How many people, so many opinions.
On Linux I use systemd. What is the closest analogue to this in FreeBsd? Is there something more or less standard that is used by many in FreeBsd? But just some kind of crutch written by Vasya Pupkin, even if it works.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry, 2018-05-13
@demon416nds

google rc.d or ask on the Lissary
forum

A
athacker, 2018-05-13
@athacker

There aren't a lot of options in Free. Not like in these Linuxes of yours :-)
https://www.freebsd.org/doc/ru_RU.KOI8-R/books/han...

A
Alexander Chernykh, 2018-05-13
@sashkets

sysutils/py-supervisor - similar to supervisord from Linux

C
CityCat4, 2018-05-21
@CityCat4

We read the documentation. Attentively. FreeBSD is a monolithic system and its documentation (English at least) is always up to date.
It's good that FreeBSD doesn't have the ugliness of systemd. Although I'm already five years old, as in parallel, but it's still good :)
To add a file to autorun, you just need to edit the /etc/rc.conf file

mycool_enable="YES"
mycool_program="/this/is/path/to/my/program"

you can add any other variables, they will be available to the start script. The start script must be in /etc/rc.d or /usr/local/etc/rc.d and conform to the FreeBSD standard

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question