Skip to content

Instantly share code, notes, and snippets.

@dhasenan
Last active April 6, 2018 03:36
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 dhasenan/67f7191a56fc663a729395429b6400b8 to your computer and use it in GitHub Desktop.
Save dhasenan/67f7191a56fc663a729395429b6400b8 to your computer and use it in GitHub Desktop.
dub registry systemd service (put in /etc/systemd/system/)
[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