Created
July 17, 2020 19:29
-
-
Save rotaliator/1d95a0fa69d02eb7182ffd7eefa5b93d to your computer and use it in GitHub Desktop.
SystemD startup file for Clojure deployment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source: https://clojureverse.org/t/systemd-startup-file-for-clojure-deployment/6232