Snippets

Ziyang Chen Systemd Script for Self-hosted Cloud9 IDE

Created by Ziyang Chen last modified
# /etc/systemd/system/c9ide.service

[Unit]
Description=Cloud9 IDE

[Service]
ExecStart=/home/halczy/.nvm/versions/node/v6.11.1/bin/node /home/user/core/server.js -l 0.0.0.0 -p 8080 -w '/home/user/workspace' -a username:password
Restart=always
 # Restart service after 10 seconds if node service crashes
 RestartSec=10
 # Output to syslog
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=c9ide
User=user
Group=user

[Install]
WantedBy=multi-user.target

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.