Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Start C9 IDE from systemd
- =========================
- `/etc/systemd/system/c9.service`
- ```
- [Unit]
- Description=Cloud9 IDE
- Requires=network.target
- [Service]
- Type=simple
- User=gbraad
- ExecStart=/home/gbraad/.local/bin/c9
- Restart=on-failure
- [Install]
- WantedBy=multi-user.target
- ```
- `/home/gbraad/.local/bin/c9`
- ```
- #!/bin/sh
- USERNAME=""
- PASSWORD=""
- $HOME/.c9/node/bin/node /opt/c9sdk/server.js \
- --listen 0.0.0.0 \
- --port 8181 \
- -a $USERNAME:$PASSWORD \
- -w /workspace
- ```
- ```
- $ sudo -i
- $ systemctl daemon-reload
- $ systemctl start c9
- $ systemctl enable c9
- ```
Add Comment
Please, Sign In to add comment