Answer the question
In order to leave comments, you need to log in
How to start daemons safely?
You need to start the daemon, and not just start it, but add it to startup, but it is not entirely trusted, there is a possibility that there may be something not good inside. How would you advise to run it so that it could not harm the system?
I created a separate account and group, threw the demon into the directory of this user, what to do next is not entirely clear.
Answer the question
In order to leave comments, you need to log in
Such cases are provided by systemd.
create either in ~/.config/systemd/user/
or in /etc/system/<daemon>@user.service
file
[Unit]
Description=my daemon
[Service]
ExecStart=/usr/bin/lnav
Restart=on-failure
SuccessExitStatus=3 4
RestartForceExitStatus=3 4
[Install]
WantedBy=default.target
systemctl enable демон@myuser.service
systemctl start демон@myuser.service
After=
Requires=
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question