0

I want to plan a shutdown of a ubuntu server as follows:

shutdown -r 12:30

Problem: first I want to make sure that my webserver is shut down (eg to clear up some resources gracefully). Normally I'd be executing systemctl tomcat stop, but how can I plan that right before the shutdown?

Or will the shutdown command automatically trigger a stop command on any running services, so I won't have to care about it?

  • 3
    This is normally handled by the service manager during shutdown. – Gerald Schneider Jan 8 at 8:57
  • Or will the shutdown command automatically trigger a stop command on any running services, so I won't have to care about it? <- correct (usually) – Lenniey Jan 8 at 9:00
  • should be automatic. it depends on the systemd unit content. please post it. – Chaoxiang N Jan 8 at 15:59
  • What systemd unit content do you mean? could you give a command? – membersound Jan 8 at 19:16

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.