From: Kristian K. <kri...@gm...> - 2007-02-18 00:29:54
|
On 2/17/07, Darrick Hartman <dha...@dj...> wrote: > > 3) How about my NO_ASTERISK (exit) variable in /etc/init.d/asterisk ? > Forgot about that one... I'd like Kristian's input on this one. We'd > need a variable in rc.conf to not start asterisk. Then a check in the > asterisk init script to check for this variable and exit cleanly if it's > found. > > There may be another way to accomplish this though. We may want a list > of services which should be started at boot or perhaps a list of > disabled services. It would be nice to include openser in the stock > Astlinux image, but if both asterisk and openser are started, there may > be some issues. > Hey Guys, If we started doing NO_* variables, we'd eventually run out :). What about this: ASTERISK_USER=root ASTERISK_GROUP=root At least this way we accomplish two things - 1) We know the user wants to start Asterisk 2) They can run it under alternate credentials if desired If they didn't define either (upgrade with old keydisk, for instance) I'd like to make the asterisk init script say something clever and warn the user that they aren't running Asterisk on AstLinux ;)! That's more similar to the other packages (openvpn, for instance). What do you think? -- Kristian Kielhofner |