QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 818|回复: 2

Howto run a service as user???

[复制链接]
发表于 2005-3-28 10:49:44 | 显示全部楼层 |阅读模式
# ircd
ERROR:  This server will not run as superuser.

如何設定, 才能讓 ircd 在啟動的時候以一般用戶的權限自動執行? 謝謝!
发表于 2005-3-28 17:16:11 | 显示全部楼层
把下面一行加到/etc/rc.d/rc.local
su -c 'command' username

example:
使用jive用户在开机时启动 jive_messenger
su -c '/opt/jive/bin/messenger start' jive
回复

使用道具 举报

 楼主| 发表于 2005-3-28 17:37:32 | 显示全部楼层
Thanks.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-6 12:54 , Processed in 0.042736 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表