Skip to content

Instantly share code, notes, and snippets.

@valentineus
Last active July 24, 2017 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valentineus/91be09da689ea1c669de0ca660b53620 to your computer and use it in GitHub Desktop.
Save valentineus/91be09da689ea1c669de0ca660b53620 to your computer and use it in GitHub Desktop.
Cloud9 service for the systemd initialization system.
# /etc/systemd/system/cloud9.service
[Unit]
Description=Cloud9 SDK
After=network.target
[Service]
WorkingDirectory=/home/cloud9/c9sdk
ExecStart=/usr/bin/node server.js -p 22020 -w /home/cloud9/workspace
Restart=always
StandardOutput=null
StandardError=syslog
SyslogIdentifier=cloud9
User=cloud9
Group=cloud9
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment