Skip to content

Instantly share code, notes, and snippets.

@zealws
Created April 25, 2016 18:21
Show Gist options
  • Save zealws/b93fdc210c8bafedbdf36c6fa4ffd8f1 to your computer and use it in GitHub Desktop.
Save zealws/b93fdc210c8bafedbdf36c6fa4ffd8f1 to your computer and use it in GitHub Desktop.
root@gannon /home/zeal # journalctl -fu say-hello.service
Apr 25 11:18:01 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:01 gannon echo[17543]: Hello, World!
Apr 25 11:18:01 gannon systemd[1]: Started Say hello.
Apr 25 11:18:02 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:02 gannon echo[17597]: Hello, World!
Apr 25 11:18:02 gannon systemd[1]: Started Say hello.
Apr 25 11:18:03 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:03 gannon echo[17602]: Hello, World!
Apr 25 11:18:03 gannon systemd[1]: Started Say hello.
Apr 25 11:18:04 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:04 gannon echo[17657]: Hello, World!
Apr 25 11:18:04 gannon systemd[1]: Started Say hello.
Apr 25 11:18:05 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:05 gannon echo[17662]: Hello, World!
Apr 25 11:18:05 gannon systemd[1]: Started Say hello.
Apr 25 11:18:06 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:06 gannon systemd[1]: Failed to start Say hello.
Apr 25 11:18:07 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:07 gannon systemd[1]: Failed to start Say hello.
Apr 25 11:18:08 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:08 gannon systemd[1]: Failed to start Say hello.
Apr 25 11:18:09 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:09 gannon systemd[1]: Failed to start Say hello.
Apr 25 11:18:10 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:10 gannon systemd[1]: Failed to start Say hello.
Apr 25 11:18:11 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:11 gannon echo[18020]: Hello, World!
Apr 25 11:18:11 gannon systemd[1]: Started Say hello.
Apr 25 11:18:12 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:12 gannon echo[18025]: Hello, World!
Apr 25 11:18:12 gannon systemd[1]: Started Say hello.
Apr 25 11:18:13 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:13 gannon echo[18079]: Hello, World!
Apr 25 11:18:13 gannon systemd[1]: Started Say hello.
Apr 25 11:18:14 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:14 gannon echo[18084]: Hello, World!
Apr 25 11:18:14 gannon systemd[1]: Started Say hello.
Apr 25 11:18:15 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:15 gannon echo[18138]: Hello, World!
Apr 25 11:18:15 gannon systemd[1]: Started Say hello.
Apr 25 11:18:16 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:16 gannon systemd[1]: Failed to start Say hello.
Apr 25 11:18:17 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:17 gannon systemd[1]: Failed to start Say hello.
Apr 25 11:18:18 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:18 gannon systemd[1]: Failed to start Say hello.
Apr 25 11:18:19 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:19 gannon systemd[1]: Failed to start Say hello.
Apr 25 11:18:20 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:20 gannon systemd[1]: Failed to start Say hello.
Apr 25 11:18:21 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:21 gannon echo[18302]: Hello, World!
Apr 25 11:18:21 gannon systemd[1]: Started Say hello.
Apr 25 11:18:22 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:22 gannon echo[18307]: Hello, World!
Apr 25 11:18:22 gannon systemd[1]: Started Say hello.
Apr 25 11:18:23 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:23 gannon echo[18362]: Hello, World!
Apr 25 11:18:23 gannon systemd[1]: Started Say hello.
Apr 25 11:18:24 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:24 gannon echo[18367]: Hello, World!
Apr 25 11:18:24 gannon systemd[1]: Started Say hello.
Apr 25 11:18:25 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:25 gannon echo[18422]: Hello, World!
Apr 25 11:18:25 gannon systemd[1]: Started Say hello.
Apr 25 11:18:26 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:26 gannon systemd[1]: Failed to start Say hello.
Apr 25 11:18:27 gannon systemd[1]: say-hello.service: Start request repeated too quickly.
Apr 25 11:18:27 gannon systemd[1]: Failed to start Say hello.
[Unit]
Description=Say hello
After=network.target
[Service]
Type=oneshot
ExecStart=/bin/echo "Hello, World!"
TimeoutSec=0
[Install]
WantedBy=multi-user.target
[Unit]
Description=Say hello every 3 minutes
[Timer]
OnCalendar=*:0/3:*
root@gannon /etc/systemd/system # cat say-hello.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment