Skip to content

Instantly share code, notes, and snippets.

@nmanzi
Last active January 5, 2018 14:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmanzi/8e119af62e314bf9b07a7bdac8c4516b to your computer and use it in GitHub Desktop.
Save nmanzi/8e119af62e314bf9b07a7bdac8c4516b to your computer and use it in GitHub Desktop.
Systemd script for Sonatype Nexus 2
[Unit]
Description=Nexus Service
After=network.target
[Service]
Type=forking
ExecStart=/opt/nexus/bin/nexus start
ExecStop=/opt/nexus/bin/nexus stop
ExecReload=/opt/nexus/bin/nexus restart
PIDFile=/var/run/nexus/nexus.pid
User=nexus
Restart=on-abort
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment