hi
i have just upgraded a headless ClarkConnect 3.0 server, to ClarkConnect 4.1, and therefore also reinstalled asterisk. My old asterisk was 1.0.? and the new one is 1.4.x.
When i set up my previous install 2 years ago i followed these instructions at
www.voip-info.org/wiki/i...sterisk+non-root
to run asterisk as non-root and used the standard redhat startup script that can be found in /asterisk source/contrib/init.d to get it started at boot.
I have tried to do the same for asterisk 1.4, but it doesn't work.
Troubleshooting by doing a
sudo -u asterisk "script that starts asterisk" resulted in an error
touch: cannot touch `/var/lock/subsys/asterisk': Permission denied]
i changed ownership of this file from root to asterisk. Thereafter i am stumped.
If I try the above sudo command now asterisk runs in "safe_asterisk" mode.
As root I can run asterisk normally and after having copied my old conf files over, most things seem to work straight away.
Any suggestions on why the script fails as non root.
Following are some log files.
boot.log
Jul 17 21:53:31 cc1 safe_asterisk: Asterisk ended with exit status 1
Jul 17 21:53:31 cc1 safe_asterisk: Asterisk died with code 1.
Jul 17 21:53:31 cc1 safe_asterisk: Automatically restarting Asterisk.
Jul 17 21:53:31 cc1 safe_asterisk: Ops. I'm not root. Falling back to standard prio and file max.
Jul 17 21:53:31 cc1 safe_asterisk: This is NOT suitable for large systems.
Jul 17 21:53:31 cc1 safe_asterisk: /usr/sbin/safe_asterisk: line 122: /dev/tty9: Permission denied
Jul 17 21:53:31 cc1 safe_asterisk: /usr/sbin/safe_asterisk: line 123: /dev/tty9: Permission denied
Jul 17 21:53:31 cc1 safe_asterisk: cat: /var/run/asterisk.pid: No such file or directory
Jul 17 21:53:31 cc1 asterisk: safe_asterisk startup succeeded
thanks
jo