This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Start BOT by bootup!

Old posts that have not been replied to for several years.
Locked
g
grogy

Post by grogy »

Hi all!

I tried to start the Server on bootup of my Debian 2.2r4. i wrote a shell script which should start the server (init.d), and updated the resources

But when i boot now, i always get the error "Can not be run as root", yes, because on startup the process gets started by root. But what can i do against it? An option like ProFTPD "user" and "group"?? Or an other thing how i can do it? may in the shellscript?

i tried in the inittab the following line:
egg1:23:respawn:/usr/bin/sudo -u eggdropusername /home/egcfg/eggdrop

but i havn't got the sudo on my systhem (whyever)..

GrOgY

<font size=-1>[ This Message was edited by: grogy on 2002-01-19 16:14 ]</font>
g
gpdza

Post by gpdza »

Create a new user on the machine (call it eggdrop or whatever) and use crontab to restart the bot. See eggdrop's README for details on how to do this.
t
tajson

Post by tajson »

Use su username -c /path/to/eggdrops/configuration/file

To execute a configuration file, the first line must point to the eggdrop executable and all paths inside the configuration file must be full path.

I did a extra variable like this instead.

set path "/path/to/your/eggdrop/directory"
set myfullpathvariable "$path/rest/of/the/path"
Locked