Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] opts variables vs extra_commands in init.d scripts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
emc
Guru
Guru


Joined: 02 Jul 2004
Posts: 552
Location: Cracow, Poland

PostPosted: Fri Jan 27, 2012 2:38 pm    Post subject: [solved] opts variables vs extra_commands in init.d scripts Reply with quote

Hi,
What should be changes in init.d scripts to get rid off:
Code:
gopher ~ # /etc/init.d/wicd stop   
 * WARNING: you are stopping a boot service
 * Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands or extra_started_commands.
 * Stopping wicd daemon and closing connections ...


Similar msg I got during boot after dbus is started


Last edited by emc on Mon Jan 30, 2012 9:33 am; edited 1 time in total
Back to top
View user's profile Send private message
Galumph
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2010
Posts: 122
Location: Israel

PostPosted: Fri Jan 27, 2012 2:52 pm    Post subject: Reply with quote

You need to update some init scripts, run this to update the ones that still use the opts variable:
Code:

# emerge -1av $(grep "^[[:space:]]*opts=" /etc/init.d/* | cut -d : -f 1 | grep -v "\\.sh$" | xargs qfile -CSq | uniq)

Make sure to run dispatch-conf or etc-update when you're done.
Back to top
View user's profile Send private message
emc
Guru
Guru


Joined: 02 Jul 2004
Posts: 552
Location: Cracow, Poland

PostPosted: Mon Jan 30, 2012 9:33 am    Post subject: Reply with quote

Looks like i was only wicd, but reemergeering didn't helped, no conf file to update at all, so I just commented line and It solved the problem
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum