Bug #388
/etc/init.d/kamailio does not start kamailio 3.0 on alpine 2.0
| Status: | Closed | Start date: | 07/21/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | - | |||
| Target version: | - |
Description
- Starting Kamailio...
- start-stop-daemon: /usr/sbin/kamailio is already running [!!]
- ERROR: kamailio failed to start
fs:~# rc-service kamailio zap - Manually resetting kamailio to stopped state
fs:~# rc-service kamailio stop - WARNING: kamailio is already stopped
fs:~# rc-service kamailio start - Starting Kamailio...
- start-stop-daemon: /usr/sbin/kamailio is already running [!!]
- ERROR: kamailio failed to start
##But if we use kamctl then it works:
fs:~# kamctl start
\E[37;33mINFO: Starting Kamailio :
\E[37;33mINFO: started (pid: 15434)
Associated revisions
main/kamailio: fix the pre-install/pre-upgrade to create the kamailio group
fixes #388
History
Updated by Natanael Copa over 1 year ago
I cannot reproduce.
From your output:
- Starting Kamailio...
- start-stop-daemon: /usr/sbin/kamailio is already running [!!]
- ERROR: kamailio failed to start
Maybe kamailio alread was running at this point?
fs:~# rc-service kamailio zap- Manually resetting kamailio to stopped state
'zap' does not stop anything. It just tells openrc: "this service is stopped because I say it is, no matter what you think or if it really is"
fs:~# rc-service kamailio stop- WARNING: kamailio is already stopped
openrc thinks the service is stopped due to it was told it was. Since it was told the service is stopped (no matter if actually was)
fs:~# rc-service kamailio start- Starting Kamailio...
- start-stop-daemon: /usr/sbin/kamailio is already running [!!]
- ERROR: kamailio failed to start
Well, if kamailio was running in first place (as message indicated) then this message is correct. The 'zap' doesnt try stop anything.
Try this:
rc-service kamailio stop # ask openrc to stop it
killall kamailio # actually kill kamailio if the above didnt work
pidof kamailio # check that there are no running kamailio
rc-service kamailio start
Updated by Natanael Copa over 1 year ago
ok i can reproduce now. the problem is that the group 'kamailio' is not there and the pre-install script is never executed.
Will fix this.
Thanks!
Updated by Natanael Copa over 1 year ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset cafd5ca6dd4491ae8387e5da0754526dfad30e44.
Updated by Natanael Copa over 1 year ago
- Status changed from Resolved to Closed