Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=My Test
- [Service]
- Type=notify
- User=testuser
- ExecStart=/home/iatf/test.sh
- [Install]
- WantedBy=multi-user.target
- Test.sh (owned by testuser with execute permission)
- #!/bin/bash
- systemd-notify --status="Starting..."
- sleep 5
- systemd-notify --ready --status="Started"
- while [ 1 ] ; do
- systemd-notify --status="Processing..."
- sleep 3
- systemd-notify --status="Waiting..."
- sleep 3
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement