Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd /home/debian/ap
- # Start a virtualenv
- source venv-ap/bin/activate
- # This needs to happen inside the virtualenv and takes ~20 seconds
- crossbar start
- # Outside the virtualenv, perhaps in a different command line window
- python3 /home/debian/myscript.py
- [Unit]
- Description=Start CB
- After=network.target
- [Service]
- Type=simple
- User=debian
- ExecStartPre=source /home/debian/ap/venv-ap/bin/activate
- ExecStart=cd /home/debian/ap/ && crossbar start
- Restart=always
- [Install]
- WantedBy=multi-user.target
Add Comment
Please, Sign In to add comment