Can not start/enable the service
I created and imported a service in the SMF. It works fine since days. But today I can't get it start. I delete this service and re-imprt it. But fail to start it. In the log I can see fowllings:
Code:
... |
Quote:
Short answer: something changed, so change it back to the working state. Otherwise, post details, and we can try to help you. |
"su: Sorry" is dubious here:
Code:
[ Jul 11 10:39:43 Method "start" exited with status 0 ] |
Quote:
I remember what I did yesterday is: I set the 'svcadm -t disable service-name' because I want to test if the service can be started by rebooting. But since I can't reboot the machine at this moment - the other colleague are working at the machine. I try to enable it again with 'svcadm enable service-name'. Since here the service can't be started. What details do you want? I will attach the svcs -x and svcs -l here. Code:
root@S001AP61-TEST (vws-tst1) # svcs -xv wsvws:default Code:
root@S001AP61-TEST (vws-tst1) # svcs -l wsvws:default I don't understand what here "restarted more frequently than normal" means. |
And here is the manifest to the service:
Code:
<?xml version="1.0" encoding="UTF-8"?> |
Quote:
|
I do further research and find interessting thing.
First here i smy init-script. I taked out a lot of codes and left the simple codes as follow: Code:
#!/usr/bin/sh But when I use the SMF to controll this script and want to start it with svcadm enable service-name, I can see in the log file that the service will be started and stopped 5 times and at last it changed to maintenance mode. This means, there is a loop in the SMF. This is why I got the error message "http://sun.com/msg/SMF-8000-L5". But why? |
The problem is solved. See here:
https://forums.oracle.com/thread/2560145 |
All times are GMT -5. The time now is 01:06 AM. |