mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-01 01:00:03 +01:00
22 lines
319 B
Text
22 lines
319 B
Text
|
#!/bin/sh
|
||
|
|
||
|
# This is an example rc script.
|
||
|
# Modify it to suit your need.
|
||
|
|
||
|
start()
|
||
|
{
|
||
|
/bin/su -l glassfish -c /usr/bin/asadmin start-domain
|
||
|
}
|
||
|
|
||
|
stop()
|
||
|
{
|
||
|
/bin/su -l glassfish -c /usr/bin/asadmin stop-domain
|
||
|
}
|
||
|
|
||
|
case "$1" in
|
||
|
"start")start;;
|
||
|
"stop")stop;;
|
||
|
"restart")stop; start;;
|
||
|
*) echo "$0 start|stop|restart"
|
||
|
esac
|