4 ms·
In fact, init scripts are only used by systemd when there are no corresponding native unit files.
by andrewshadura 5y ago
In fact, init scripts are only used by systemd when there are no corresponding native unit files.
- kijin 5y agoA lot of debian packages supply both systemd unit files and init scripts. You can use either to step on the other's foot.
- andrewshadura 5y agoAs I said, init scripts are only used if there's no unit file. If there's a systemd unit, the init script is ignored.
- kijin 5y agoIf there's a systemd unit, the init script is redundant, confusing, and possibly dangerous. It should not exist in the first place, perhaps except as a thin wrapper around the corresponding systemd command.
- seba_dos1 5y agoIf the package maintainer wants to support systemd-less systems out there, I don't see a reason to not let them to.
- mst 5y agoHaving that support come in the form of installing both on all systems does have its downsides though. OTOH, I wouldn't be surprised if every other feasible approach's downsides are widely regarded to be worse. Software. Yay :D
- yrro 5y agoIf you invoke the init script on a system booted with systems then it does indeed wrap the equivalent systemctl command.