ARTIFACTORY: Start Artifactory with init.d instead of systemd
Artifactory, by default, uses the systemd method to manage the Artifactory service; however, in some cases, you may prefer using init.d to manage your Artifactory service. This article will cover how you can start Artifactory with init.d instead of systemd.
For Artifactory version 7.x:
- Before you start the Artifactory, please navigate to the /etc/init.d folder and create a new directory called “Artifactory”, in case you do not have one inside the init.d folder.
- Used command: mkdir /etc/init.d/artifactory
- Navigate to the /etc/systemd/system folder and then copy the script “sysinit.target.wants” into the artifactory folder that you created earlier, as shown below:
- Used command: mv /etc/systemd/system/sysinit.target.wants/ /etc/init.d/artifactory/
- Now you may go to $ARTIFACTORY_HOME/artifactory/bin
- Used command: cd /opt/jfrog/artifactory/app/bin/
- Start the Artifactory with this command:
- Used command: service artifactory start
More information can be found on our Artifactory Installation page.