1 The usual way to run beanstalkd is to type its name
2 in a Unix shell prompt, like this:
6 This will start up the process and give you control over it.
7 You can control its output (by default output is printed to
8 the screen; you can arrange to have output go into file
9 b.log by typing ">b.log" at the end of the command line),
10 pause and restart the process (by pressing Control-Z and
11 typing "fg"), and kill it (by pressing Control-C).
12 This is most convenient while writing programs that use
13 beanstalkd (or when working on beanstalkd itself), since
14 you might want to start and stop it many times and regularly
17 If you want beanstalkd to start when your operating system
18 boots, the mechanism varies.
20 Traditionally, you must add a command line to the shell script
21 in /etc/rc (which is read by init when the system boots),
22 using the "&" notation to run beanstalkd in the background.
23 This would suffice for most situations, but it isn't always
26 These days, many popular operating systems have a replacement
27 init program with its own configuration language. Example
28 configuration files for several of these are included in
29 subdirectories here, but the most common is probably "System V
30 init", which reads /etc/inittab for lines describing commands
31 to run at various times. If this file exists, you can add
34 bean:345:respawn:su nobody -c 'exec /usr/bin/beanstalkd'
36 and type "telinit q" to tell init to reread its configuration.
37 Type "man 5 inittab" for details of this notation.