Advertisement
Guest User

Untitled

a guest
Mar 1st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. [Unit]
  2. Description=Startup Thing
  3.  
  4. [Service]
  5. Type=oneshot
  6. ExecStart=/usr/bin/python3 -u /opt/thing/doStartup
  7. WorkingDirectory=/opt/thing
  8. StandardOutput=journal
  9. User=thingUser
  10. # Make sure the /run/thing directory exists
  11. PermissionsStartOnly=true
  12. ExecStartPre=-/bin/mkdir -p /run/thing
  13. ExecStartPre=/bin/chmod -R 777 /run/thing
  14.  
  15. [Install]
  16. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement