Bug 206538 - "service ppp restart" fails
Summary: "service ppp restart" fails
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.2-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2016-01-23 20:04 UTC by Philippe Michel
Modified: 2016-01-23 20:04 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Michel 2016-01-23 20:04:53 UTC
"service ppp restart" fails with a message like :

Stopping PPP profile: sfr.
ppp already running?  (pid=460).

I think this is due to the stop part of the ppp rc script merely signalling the service to stop without waiting for it to actually finish (as comments in /etc/rc.subr indicate it should).

The failing restart is instantaneous while ppp.log show that the process can take a relatively long time to terminate :

Jan 23 18:21:15 metropolis ppp[460]: tun0: Phase: Signal 15, terminate.
Jan 23 18:21:46 metropolis ppp[460]: tun0: Phase: PPP Terminated (normal).