2

I write a service script following service script but I found there no daemon command, and I can't google how to install it

Community
  • 1
  • 1
BollMose
  • 2,326
  • 4
  • 29
  • 35

1 Answers1

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