chiark / gitweb /
service: sysv - properly handle init scripts with .sh suffix
authorMichael Biebl <biebl@debian.org>
Wed, 6 Mar 2013 22:24:31 +0000 (23:24 +0100)
committerMichael Biebl <biebl@debian.org>
Wed, 6 Mar 2013 22:24:31 +0000 (23:24 +0100)
commit11dac832c75cbdd0015fb0417b9877396ea57f6f
tree9e9dc5b69f5bcb8c076140ba9ec86089e019b825
parent9304ef91c563263cfd914fb32b6ca118bf60d60e
service: sysv - properly handle init scripts with .sh suffix

Dropping the distribution specific #ifdefs in
88516c0c952b9502e8ef1d6a1481af61b0fb422d broke the .sh suffix stripping
since we now always used the else clause of the rc. check.

We eventually want to drop the rc. prefix stripping, but for now we
assume that no sysv init script uses both an rc. prefix and .sh suffix,
so make the check for the .sh suffix and rc. prefix mutually exclusive.
src/core/service.c