</preremoveScriptlet>
<requires>
<require>java</require>
+ <!-- For the start/stop scripts -->
+ <require>expect</require>
</requires>
</configuration>
</execution>
}
stop() {
- telnet localhost 3030 << EOF
-close
+ /usr/bin/expect << EOF
+spawn telnet localhost 3030
+expect "osgi>"
+send "close\r"
EOF
action $"Stop SLC agent" /bin/true
return $RETVAL
}
stop() {
- telnet localhost 3040 << EOF
-close
+ /usr/bin/expect << EOF
+spawn telnet localhost 3040
+expect "osgi>"
+send "close\r"
EOF
action $"Stop SLC server" /bin/true
return $RETVAL