Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=Come one step closer
- After=network-online.target
- Requires=network-online.target
- [Service]
- User=test1
- Group=test1
- Type=simple
- ExecStart=/usr/bin/bash /absolute/path/to/test.sh
- [Install]
- WantedBy=multi-user.target
- $ sudo systemctl daemon-reload
- $ sudo systemctl start tester.service
- $ sudo useradd -r -s /usr/bin/bash test1 -U
Add Comment
Please, Sign In to add comment