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,711 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
- 776,304
- 153
- 1,341
- 1,358
-
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