Answer the question
In order to leave comments, you need to log in
Auto start target in systemd?
Good afternoon, colleagues, I ask you to help with the solution of the issue. There are some units, they start on their own, but there are also those that cannot, for example:
#[email protected]
Description=RQ Worker Number %i
After=network.target
[Service]
Type=simple
WorkingDirectory=/var/www/public/eis_bot
Environment=LANG=en_US.UTF-8
Environment=LC_ALL=en_US.UTF-8
Environment=LC_LANG=en_US.UTF-8
ExecStart=/root/.pyenv/shims/rq worker handler
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
Restart=always
[Install]
WantedBy=multi-user.target
[Unit]
Description=Working for eis_bot target
[email protected]
[email protected]
<...>
After=network.target
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question