Skip to content

Instantly share code, notes, and snippets.

@samjaninf
Created January 26, 2018 21:51
Show Gist options
  • Save samjaninf/7122fae73cad9d6d2b014111272ef173 to your computer and use it in GitHub Desktop.
Save samjaninf/7122fae73cad9d6d2b014111272ef173 to your computer and use it in GitHub Desktop.
[Unit]
Description=WS02 Identity Server
[Service]
Type=simple
PIDFile=/opt/WSO2/wso2is-5.4.0/wso2carbon.pid
Environment=JAVA_HOME=/usr/java/jdk1.8.0_161
Environment=CARBON_HOME=/opt/WSO2/wso2is-5.4.0
User=wso2
PermissionsStartOnly=true
ExecStartPre=/bin/touch /opt/WSO2/wso2is-5.4.0/wso2carbon.pid
ExecStartPre=/bin/chown wso2:wso2 /opt/WSO2/wso2is-5.4.0/wso2carbon.pid
ExecStart=/opt/WSO2/wso2is-5.4.0/bin/wso2server.sh
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment