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
  • 3,002
  • 4
  • 32
  • 41

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
  • 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