Date: Tue, 26 Jul 2005 23:16:43 -0700 From: Lei Sun <lei.sun@gmail.com> To: freebsd-questions@freebsd.org Subject: how to run 2 instance of memcached from rc.conf? Message-ID: <d396fddf05072623167eb3bb24@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I am trying to run 2 instance of memcached from rc.conf, but whenever I try to start it the second time, it tells me that the instance is already running. Please help... my rc.conf -------------------------------------------- defaultrouter=3D"192.168.0.1" hostname=3D"aphrodite.us.8po.com" ifconfig_em0=3D"inet 192.168.0.200 netmask 255.255.255.0" sshd_enable=3D"YES" mysql_enable=3D"YES" mysql_limits=3D"YES" apache_enable=3D"YES" memcached_enable=3D"YES" memcached_flags=3D"-m 1024 -l 127.0.0.1 -p 11211" ----------------------------------------------- my /usr/local/etc/rc.d/memcached.sh ---------------------------------------------- #!/bin/sh # # PROVIDE: memcached # REQUIRE: NETWORKING # # Add the following lines to /etc/rc.conf to run memcached: # # memcached_enable=3D"YES" # memcached_flags=3D"" # . /etc/rc.subr name=3D"memcached" rcvar=3D`set_rcvar` command=3D/usr/local/bin/memcached command_args=3D"-du nobody ${memcached_flags}" load_rc_config $name run_rc_command "$1" --------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d396fddf05072623167eb3bb24>