]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
service: Heuristically determine whether SysV scripts support reload
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 16 Oct 2012 08:14:03 +0000 (10:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Oct 2012 14:18:41 +0000 (16:18 +0200)
commit37e2941d144f362c0585974939cf12ad01aa0258
treee49ae9a4ba9cf7b0ccc4fed37000af03a882697b
parenta2ab7ee6122a5006cafc45d7b81f726656fb65cc
service: Heuristically determine whether SysV scripts support reload

This commit checks for a usage line which contains [{|]reload[|}"] (to
not errnously match force-reload).

Heuristics like this suck, but it solves a real problem and there
appears to be no better way...
src/core/service.c