Running Applicare as a Service in a Linux Machine
- Go to the /etc/rc.d directory with the following command:
cd /etc/rc.d
- Edit rc.local by adding the following command to start Applicare:
vi rc.local
...
/Applicare/server/bin/startup.sh >> /dev/null & - Save the rc.local file and restart the machine.
-
This is an old method if you are running a system with systemctl.
In that case you need to create a file in /etc/systemd/system called applicare.service and put the following into it:
[Unit]
Description=applicare Service
After=network.target
[Service]
Type=simple
User=root
ExecStart=/opt/Applicare/server/bin/startup.sh
Restart=on-abort
[Install]
WantedBy=multi-user.targetThen run systemctl daemon-reload
Start Service - systemctl start applicare
Stop Service - systemctl stop applicare
Check Service status - systemctl status applicare
To start the agent at boot - systemctl enable applicareTo uninstall service
systemctl stop applicare.service
systemctl disable applicare.service
rm -f /etc/systemd/system/applicare.service
systemctl daemon-reload
systemctl reset-failed
Please sign in to leave a comment.
Comments
1 comment