小编fly*_*r88的帖子

如何使用自定义参数运行守护进程

我想知道如何使用自定义参数运行守护进程,在本例中为 NTP。

例如,在我的 Ubuntu PC 中,我观察到我ntpd以这种方式运行:

$ ps aux | grep ntpd
ntp  5936  ...  0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 119:127
Run Code Online (Sandbox Code Playgroud)

您可能会注意到该-g参数。

但是在我的 Gentoo PC 中,我运行了相同的命令,我可以观察到 ntp 守护进程没有使用该-g参数运行,我想添加它!

这是发行版特定的问题吗?我该如何处理?

configuration init daemon

3
推荐指数
2
解决办法
2万
查看次数

标签 统计

configuration ×1

daemon ×1

init ×1