ow2-proactive / agent-linux

Linux Agent for ProActive Workflows & Scheduling
http://proactive.activeeon.com/
GNU Affero General Public License v3.0
0 stars 8 forks source link

OpenSUSE not supported #103

Open activeeon-bot opened 9 years ago

activeeon-bot commented 9 years ago

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).

activeeon-bot commented 9 years ago

Attachment:

activeeon-bot commented 9 years ago

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

activeeon-bot commented 9 years ago

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

activeeon-bot commented 9 years ago

Original comment posted by Youri Bonnaffe on 12, Feb 2015 at 18:41 PM


group is not created too