Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=Startup Thing
- [Service]
- Type=oneshot
- ExecStart=/usr/bin/python3 -u /opt/thing/doStartup
- WorkingDirectory=/opt/thing
- StandardOutput=journal
- User=thingUser
- # Make sure the /run/thing directory exists
- PermissionsStartOnly=true
- ExecStartPre=-/bin/mkdir -p /run/thing
- ExecStartPre=/bin/chmod -R 777 /run/thing
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement