Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Unit]
Description=dateimage
[Service]
ExecStart=/bin/sh -c "while /bin/true; do /usr/bin/convert -size 200x200 -gravity center -background gray -fill white label:\"`LC_ALL=C /bin/date`\" /var/www/html/date.png; sleep 1; done"
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.