在ubuntu上使用daemonize no时redis服务器卡住

在ubuntu上使用daemonize no时redis服务器卡住,ubuntu,redis,daemon,upstart,Ubuntu,Redis,Daemon,Upstart,我正在使用此链接使用upstart配置redis: 我已设定: daemonize no 在redis.conf中,用于启动服务器。以下是我的redis upstart脚本: description "redis server" start on runlevel [23] stop on shutdown respawn exec sudo -u redis /usr/bin/redis-server /etc/redis/redis.conf 但现在每当我这样做: sudo ser

我正在使用此链接使用upstart配置redis:

我已设定:

daemonize no
在redis.conf中,用于启动服务器。以下是我的redis upstart脚本:

description "redis server"

start on runlevel [23]
stop on shutdown
respawn

exec sudo -u redis /usr/bin/redis-server /etc/redis/redis.conf
但现在每当我这样做:

sudo service redis-server start

命令被卡住了。我尝试手动运行该命令:

sudo -u redis /usr/bin/redis-server /etc/redis/redis.conf
而且它工作得非常好(如预期的那样在前景中)。谁能帮我安装一下吗。跟踪日志表明,
sudo service
命令甚至没有启动服务器

sudo -u redis /usr/bin/redis-server /etc/redis/redis.conf