Score:0

Crontab is not starting automatically after Docker Container reboot

tn flag

I have running a docker container in the qnap container station. Docker Container OS: Ubuntu 20

I have installed crontab on this Container. The Container will restarted every day.

The problem now is, after the Container is restarted, cron is not running! So how can i add the "service cron start" to autorun after system reboot?

Thank you

muru avatar
us flag
Some QNAP devices support LXC containers, can you use those instead? LXC containers boot like a regular system, with services and all, so cron and other services work perfectly there.
Christopher E avatar
tn flag
LXC is not supported after Container Station 3 at QNAP. Is there also a work around to start cron after reboot?
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.