Ask Your Question
0

systemd: ExecStop?

asked 2017-11-13 14:36:10 -0500

toddandmargo gravatar image

Dear Ask Fedora,

Some questions on systemd scripts

1) what is their official name?

2) if you do not have a "ExecStop" line, what does "systemctl stop xxx" do when called?

3) if you do not have a "ExecReload" line, what does "systemctl reload xxx" do when called?

Many thanks, -T

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-14 01:18:23 -0500

masteroman gravatar image

I believe you're referring to the systemd.service files.

That same page should provide you with answers for all of the other questions:

edit flag offensive delete link more

Comments

That is a beautiful reference. Thank you!

"Since no ExecStop= was specified, systemd will send SIGTERM to all processes started from this service, and after a timeout also SIGKILL. This behavior can be modified, see systemd.kill(5) for details."

There was no explaining of what happens where there is no "ExecReload" line.

So the question is only half answered.

toddandmargo gravatar imagetoddandmargo ( 2017-11-14 03:18:45 -0500 )edit

In recent enough version of systemd it will simply print out the error:

[ivan@kirk ~]$ sudo systemctl reload bluetooth
Failed to reload bluetooth.service: Job type reload is not applicable for unit bluetooth.service.
See system logs and 'systemctl status bluetooth.service' for details.
masteroman gravatar imagemasteroman ( 2017-11-15 07:04:26 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-11-13 14:36:10 -0500

Seen: 93 times

Last updated: Nov 14 '17