Last active
April 18, 2017 22:58
-
-
Save yonglai/99e54b1bfdcdcd7b2e8d5146432b0d7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
echo create bpm.service | |
touch /etc/systemd/system/bpm.service | |
chmod 644 /etc/systemd/system/bpm.service | |
cat <<EOT >> /etc/systemd/system/bpm.service | |
[Unit] | |
Description=Tibco ActiveMatrix BPM 4.0 server | |
After=syslog.target network.target | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/bin/bpm.sh | |
[Install] | |
WantedBy=multi-user.target | |
EOT | |
echo create bpm.sh script | |
touch /bin/bpm.sh | |
chmod 750 /bin/bpm.sh | |
cat <<EOT >> /bin/bpm.sh | |
#!/bin/bash | |
cd /home/vagrant/TIBCO_HOME/amx-bpm/tibco/data/tibcohost/Admin-AMX-BPM-AMX-BPM-Server/host/bin | |
su vagrant -c './tibcohost &' | |
EOT | |
echo enable bpm.service | |
systemctl daemon-reload | |
systemctl enable bpm.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment