systemctl reboot
by dofre114 from LinuxQuestions.org on (#4T8NR)
Hello,
on a linux redhat 7 * I created a service for a specific application. When I start or stop my service via the command systemctl start monservice and systemctl stop monservice I have no problem, but I thought that the command systemctl reboot before the shutdown of the machine would stop my service properly, except this is not the case.
How should I tell the system to properly shut down my service during the reboot phase? must we redefine the target reboot?
thank you in advance for your help


on a linux redhat 7 * I created a service for a specific application. When I start or stop my service via the command systemctl start monservice and systemctl stop monservice I have no problem, but I thought that the command systemctl reboot before the shutdown of the machine would stop my service properly, except this is not the case.
How should I tell the system to properly shut down my service during the reboot phase? must we redefine the target reboot?
thank you in advance for your help