2016-04-12 51 views
0

我有一个python应用程序,我试图通过一个暴发户脚本运行。这是我的conf文件Ubuntu Upstart无法启动权限被拒绝

start on (local-filesystems and net-device-up IFACE=eth0) 
stop on runlevel [!12345] 

respawn 

setuid myuser 
setgid myuser 

chdir /home/myuser/ 

exec . bin/runapp 

我能够没有问题,因为在命令行中的用户身份运行应用程序,但尝试启动这个暴发户脚本失败start: Job failed to start

展望/var/log/syslog显示:

localhost kernel: init: Failed to spawn myapp main process: unable to execute: Permission denied 

这个问题很相似,这里所描述的:https://unix.stackexchange.com/questions/65662/upstart-job-as-unprivileged-user-fails-with-permission-denied

所有帮助表示感谢,谢谢!

回答

0

我想通了,我在做什么错?

exec . bin/runapp需要的是exec ./bin/runapp