Cannot create PID file at startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ser (Debian) |
Fix Released
|
Unknown
|
|||
ser (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: ser
I have installed ser . I have checked that it worked and made a couple of test calls with it.
Then after a restart of the machine I have noticed that ser is not running and cannot be started.
I have added the logging to syslog in the ser.cfg file and I have had this output in /var/log/messages:
Sep 8 15:57:54 softswitch ser: init_tcp: using epoll_lt as the io watch method (auto detected)
Sep 8 15:57:54 softswitch ser: unable to create pid file /var/run/
Sep 8 15:57:55 softswitch ser: init_tcp: using epoll_lt as the io watch method (auto detected)
Sep 8 15:57:55 softswitch ser: unable to create pid file /var/run/
Sep 8 15:59:25 softswitch ser: init_tcp: using epoll_lt as the io watch method (auto detected)
Sep 8 15:59:25 softswitch ser: unable to create pid file /var/run/
Sep 8 16:00:55 softswitch ser: init_tcp: using epoll_lt as the io watch method (auto detected)
Sep 8 16:00:55 softswitch ser: unable to create pid file /var/run/
It seems that the directory /var/run/ser is deleted on system restart and hence the startup of ser is compromised as it wants to create its pid file in this directory.
Related branches
Changed in ser (Ubuntu): | |
status: | New → Confirmed |
Changed in ser (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → SevenMachines (sevenmachines) |
Changed in ser (Ubuntu): | |
importance: | Undecided → Medium |
Changed in ser (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in ser (Debian): | |
status: | Unknown → New |
Changed in ser (Debian): | |
status: | New → Fix Released |
Workaround for this:
edit as root the file /etc/init.d.ser and change the line
PIDFILE= /var/run/ $NAME/$ NAME.pid /var/run/ $NAME.pid
into
PIDFILE=