L
L
LamerFromSpace2020-02-16 01:37:24
linux
LamerFromSpace, 2020-02-16 01:37:24

Why won't my service start on linux?

The service file is located in /etc/systemd/system
When the system boots, the service does not turn on, error code 2
If you then manually write systemctl start - everything works

The service itself:

[Unit]
Description = Шлёт расписание мужикам

[Service]
RemainAfterExit=true
ExecStart=/home/ec2-user/TG_shed/TG_Shedule_AWS
Type=simple

[Install]
WantedBy=multi-user.target

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Yakushenko, 2020-02-16
@LamerFromSpace

[Unit]You did not specify a launch parameter in the blockAfter=multi-user.target

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question