Skip to content

Instantly share code, notes, and snippets.

@rotaliator
Created July 17, 2020 19:29
Show Gist options
  • Save rotaliator/1d95a0fa69d02eb7182ffd7eefa5b93d to your computer and use it in GitHub Desktop.
Save rotaliator/1d95a0fa69d02eb7182ffd7eefa5b93d to your computer and use it in GitHub Desktop.
SystemD startup file for Clojure deployment
[Unit]
Description=The Server
After=network.target
StartLimitIntervalSec=0
[Service]
User=the-server
Group=the-server
ExecStart=/usr/bin/java -Xms512m -Xmx512m -server -cp /path/to/the-server.jar clojure.main -m the-server.server 8090
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target
@rotaliator
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment