Last active
April 6, 2018 03:36
-
-
Save dhasenan/67f7191a56fc663a729395429b6400b8 to your computer and use it in GitHub Desktop.
dub registry systemd service (put in /etc/systemd/system/)
This file contains 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=DUB package registry | |
After=network.target | |
[Service] | |
WorkingDirectory=/opt/dub | |
ExecStart=/opt/dub/dub-registry --mirror https://code.dlang.org/ --port 8005 | |
KillMode=process | |
Restart=on-failure | |
RestartPreventExitStatus=255 | |
Type=simple | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment