Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13434 - named init.d script complains about svc_start/stop
Summary: named init.d script complains about svc_start/stop
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Brad Cowan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-07 12:22 UTC by Alessandro Pisani
Modified: 2003-01-08 17:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Pisani 2003-01-07 12:22:39 UTC
* Please use 'svc_stop; svc_start' and not 'start; stop' to
 * restart the service in its custom 'restart()' function.
 * Run named without arguments for more info.

 * Stopping named...                                                      [ ok ]
 * Starting named...                                                      [ ok ]

can be fixed adding:

restart() {
    svc_stop
    svc_start
}

to /etc/init.d/named
Comment 1 Brad Cowan (RETIRED) gentoo-dev 2003-01-08 13:27:08 UTC
went to fix, but you are using a very old init script that has been updated :)
I'll go ahead and change the old script though ...thanks 
Comment 2 Alessandro Pisani 2003-01-08 16:12:10 UTC
Reopening bug:  Brad: i'm not using an old init script: it is the one which gets installed by bind-9.2.2_rc2-r1.ebuild : named.rc6. You changed named.rc5, so the problem ramains since emerge will install named.rc6 which gives the error I previously reported.  
Comment 3 Brad Cowan (RETIRED) gentoo-dev 2003-01-08 17:42:09 UTC
ok, I think I get what u mean...I added a restart() function to the rc6 init script