Skip to content

Instantly share code, notes, and snippets.

@bamedro
Last active October 24, 2017 20:37
Show Gist options
  • Save bamedro/ff5642e60fd77e0ba79d1dba3262d934 to your computer and use it in GitHub Desktop.
Save bamedro/ff5642e60fd77e0ba79d1dba3262d934 to your computer and use it in GitHub Desktop.
install proactive server as a systemd service
#!/bin/bash
# Give the ZIP release as argument
mkdir -p /opt/proactive
unzip $1 -d /opt/proactive
ln -s /opt/proactive/${1%.zip} /opt/proactive/server
sudo chown -R activeeon:activeeon /opt/proactive
# Generate proactive-server service description
cat > /etc/systemd/system/proactive-server.service <<EOL
[Unit]
After=sshd.service
[Service]
ExecStart=/opt/proactive/server/bin/proactive-server --clean -ln 1
User=activeeon
[Install]
WantedBy=default.target
EOL
chmod 664 /etc/systemd/system/proactive-server.service
# Install ProActive Node Service
systemctl daemon-reload
systemctl enable proactive-server.service
echo You can now start proactive-server service using:
echo systemctl start proactive-server.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment