Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
////// was8 file on /etc/init.d
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: was8
# Required-Start:
# Should-Start: $ALL
# Required-Stop:
# Should-Stop:
# Default-Start: 3
# Default-Stop: 0 1 2 6
# Short-Description: Websphere 8.5.5
# Description: Start IBM Websphere Application Server 8.5.5 - Liberty Profile
### END INIT INFO
. /etc/rc.status
# Reset status of this service
rc_reset
case $1 in
start)
/opt/IBM/WebSphere/Liberty/bin/server start
;;
stop)
/opt/IBM/WebSphere/Liberty/bin/server stop
;;
restart)
/opt/IBM/WebSphere/Liberty/bin/server stop
/opt/IBM/WebSphere/Liberty/bin/server start
;;
esac
rc_exit
//// run this after creating file above
[root@]# chkconfig --add was8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.