I have a /ect/init/app.conf
file that looks something like...
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
How can I change the exec line to run as an unprivileged user?
exec sudo -u username app > /var/log/app.log 2>&1
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.