M
M
Meehalkoff2018-11-03 15:49:08
linux
Meehalkoff, 2018-11-03 15:49:08

How to restart systemd service after resuming from suspend?

Greetings.
There is a service:

[Unit]
Description=some app
After=network.target

[Service]
User=root
WorkingDirectory=/opt/app/
ExecStart=/opt/app/app.run
Restart=on-failure

[Install]
WantedBy=multi-user.target

How to modify it so that it restarts after the laptop exits the standby mode (suspend)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question