Open activeeon-bot opened 9 years ago
Attachment:
Original comment posted by Youri Bonnaffe on 12, Feb 2015 at 17:57 PM
An alternative would be to have a simple systemd script like
linux:/etc/init.d # cat /usr/lib/systemd/system/proactive-agent.service
[Unit]
Description=ProActive Agent
[Service]
Type=simple
ExecStart=/usr/bin/python /opt/proactive-agent/proactive-agent --logFile /opt/proactive-agent/proactive-agent.log --debug --daemon /opt/proactive-agent/config.xml
# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300
[Install]
WantedBy=multi-user.target
and to use systemctl enable proactive-agent.service systemctl enable proactive-agent.service
Original comment posted by Youri Bonnaffe on 12, Feb 2015 at 18:36 PM
This is helpful as an example: https://github.com/jenkinsci/jenkins/blob/master/opensuse/SOURCES/jenkins.init.in
Original issue created by Youri Bonnaffe on 12, Feb 2015 at 16:52 PM - LINAGENT-103
On OpenSUSE 13.1, init.d script for the Agent does not execute with error: linux:/home/vagrant 1. /etc/init.d/proactive-agent status /etc/init.d/proactive-agent: line 27: /etc/rc.d/init.d/functions: No such file or directory /etc/init.d/proactive-agent: line 118: status: command not found
Workaround is to use attached proactive-agent init.d file (with missing features).