Guest User

Untitled

a guest
Nov 13th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. [Unit]
  2. Description=Come one step closer
  3. After=network-online.target
  4. Requires=network-online.target
  5.  
  6. [Service]
  7. User=test1
  8. Group=test1
  9. Type=simple
  10. ExecStart=/usr/bin/bash /absolute/path/to/test.sh
  11.  
  12. [Install]
  13. WantedBy=multi-user.target
  14.  
  15. $ sudo systemctl daemon-reload
  16.  
  17. $ sudo systemctl start tester.service
  18.  
  19. $ sudo useradd -r -s /usr/bin/bash test1 -U
Add Comment
Please, Sign In to add comment