Instantly share code, notes, and snippets.

Embed
What would you like to do?
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