1

I have a LSB script launching a daemon with commands like start, stop, restart, but also with custom commands, like start-dump.

Is it possible to achieve the same result with only a Systemd service unit definition? (no external script in /etc/init.d or whatever)

Note that start-dump would basically do a /my/executable --dump

  • On RH/CentOS/Fedora systems, my advice is to keep using service, which will allow extra verbs in /usr/libexec/initscripts/legacy-actions and fall through to systemd for start, stop, etc. – Ulrich Schwarz Apr 23 at 8:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.