Linux exec与非特权用户

时间:2016-02-22 17:42:21

标签: linux ubuntu service

我有一个/ect/init/app.conf文件,看起来像......

start on filesystem and net-device-up IFACE!=lo
stop on runlevel [016]
respawn

chdir /home/richie/application
exec app >> /var/log/app.log 2>&1

如何更改exec行以作为非特权用户运行?

1 个答案:

答案 0 :(得分:0)

httppost.setHeader("Content-type", "application/x-www-form-urlencoded");