If you want your jobs to have any output, you might have to either install postfix (hence the No MTA installed, discarding output message), or you can set your job up in a way that it saves to a file. Īug 15 14:11:01 253c3ec CRON: pam_env(cron:session): Unable to open env file: /etc/default/locale: No such file or directoryĪug 15 14:11:01 253c3ec CRON: pam_unix(cron:session): session opened for user root by (uid=0)Īug 15 14:11:01 253c3ec CRON: (root) CMD (echo "crontab job at $(date)")Īug 15 14:11:01 253c3ec CRON: (CRON) info (No MTA installed, discarding output)Īug 15 14:11:01 253c3ec CRON: pam_unix(cron:session): session closed for user root I see the jobs being triggered there just fine, such as. You can see them with journalctl -u cron (the cron service’s logs). Hi I’ve checked it out, and by default, with the INITSYSTEM=on, the logs are in the normal systemd logs, not sent to a specific file. # Enable systemd init system in container # Install cronjobs to turn display on and off # This will copy all files in our root to the working directory in the container RUN JOBS=MAX npm install -production -unsafe-perm & npm cache clean & rm -rf /tmp/* # making sure to clean up the artifacts it creates in order to reduce the image size. # This install npm dependencies on the resin.io build server, # Copies the package.json first for better cache on later pushes # Defines our working directory in container Procedure Type the following command to create a copy of your cron file: Type the following command to edit the cronfile: Add the following information to. & echo 'exec /usr/bin/X -s 0 dpms -nocursor -nolisten tcp > /etc/X11/xinit/xserverrc If you try to use for example csh shell redirect syntax in your /etc/cron.d/example1, then your cron job will never run. RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc \ RUN echo "xset s off" > ~/.fluxbox/startup & echo "xserver-command=X -s 0 dpms" > ~/.fluxbox/startup RUN apt-get update & apt-get install -y \ I’ve looked in the standard places for raspberry PI and Linux systems but I cant seem to find them. My device is a raspberry Pi 3 running ResinOS. Sorry, I’m new to resin.io and new to Docker.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |