Modify

Opened 6 years ago

Last modified 4 years ago

#11167 new defect

p910nd does not remove .pid file when stopped

Reported by: Anton van Bohemen <avbohemen@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

When the p910nd daemon is stopped (/etc/init.d/p910nd stop), the .pid file (/var/run/p9100d.pid) is not removed.

When the daemon is started again, the new pid is written to the file, but it is never removed when stopped.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by Anton van Bohemen <avbohemen@…>

Simple fix, probably: add "rm $PID_F to stop_service() in init-file:

https://dev.openwrt.org/browser/packages/net/p910nd/files/p910nd.init?rev=31644

stop_service() {
        local section="$1"
        config_get port "$section" port

        PID_F=/var/run/p910${port}d.pid
        [ -f $PID_F ] && kill $(cat $PID_F)
# add -> rm $PID_F
}

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.