Last active
January 5, 2018 14:05
-
-
Save nmanzi/8e119af62e314bf9b07a7bdac8c4516b to your computer and use it in GitHub Desktop.
Systemd script for Sonatype Nexus 2
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=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