Skip to content

Instantly share code, notes, and snippets.

@botic
Created April 19, 2017 15:29
Show Gist options
  • Select an option

  • Save botic/a4950d4f0bdd7d2b65dc818c5d363e4e to your computer and use it in GitHub Desktop.

Select an option

Save botic/a4950d4f0bdd7d2b65dc818c5d363e4e to your computer and use it in GitHub Desktop.
RingoJS Unit
[Unit]
Description=RingoJS App
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=simple
WorkingDirectory=/usr/local/ringojs-apps/my-app-dir/
ExecStart=/usr/bin/ringo --production -Dringo.home=/usr/share/ringojs -J-server -Djava.awt.headless=true \
-J-Xms256M -J-Xmx256M -J-Xbootclasspath/p:/usr/share/ringojs/lib/js.jar \
-m /usr/local/ringojs-apps/my-app-dir/packages/ \
/usr/local/ringojs-apps/my-app-dir/main.js
Restart=on-failure
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment