How to trigger app reboot on a schedule
-
The Wekan app has performance issues with things like copying cards from one board to another and the process gets slower and slower the longer the Wekan app is running.
Our work around is to reboot the Wekan app before doing the card copies which helps dramatically.
Is there a command I can enter into the Cron section of the Cloudron's app configuration that will reboot the app on a set schedule, or said another way, is there a command that can be run from an app's terminal that will restart the app?
I tried
reboot
in the app's terminal and get the following:System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down Failed to talk to init daemon.
-
This might be worth reporting upstream for a start.
Apps on cloudron are not rebooted but restarted, there is no way an app itself restarts itself unless the main container process gets killed (which is probably possible).
Cloudron has APIs for this though https://docs.cloudron.io/api.html#tag/Apps/paths/~1apps~1{appid}~1restart/post
-