Score:0

Ignore ExecStartPre sleep for ad-hoc systemctl starts

se flag

I have a PDF Rendering custom application, I have successfully created a systemctl service for it. I have successfully configured the ExecStartPre=/bin/sleep 30 to delay the start by 30 seconds.

Unfortunately searching the web and Linux documentation I cannot find a way to start the service immediately if I want to run it manually on an ad-hoc basis. I know I could always comment out the ExecStartPre line in the service file but it would save time if I didn't have to.

Appreciate any pointers. Thank you.

Score:0
jp flag

Create another service for the delay and use dependencies to run the PDF rendering service after it. Now you can either start the new service when you need the delay, or the PDF rendering service directly.

user1031053 avatar
se flag
Of course - the solution is super simple then. Thank you.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.