I write a service script following service script but I found there no daemon command, and I can't google how to install it
Asked
Active
Viewed 7,472 times
1 Answers
5
From /usr/share/doc/initscripts-*/sysvinitfiles:
# Source function library.
. /etc/init.d/functions
...
Functions in /etc/init.d/functions
=======================================
daemon [ --check <name> ] [ --user <username>]
[+/-nicelevel] program [arguments] [&]
...
Ignacio Vazquez-Abrams
- 740,318
- 145
- 1,296
- 1,325
-
I add this line :. /etc/init.d/functions . to script,but it can't work .the tip is: daemon parameters is wrong. where I did miss – BollMose Sep 04 '13 at 11:06