diff options
-rw-r--r-- | doc/faq.html | 8 | ||||
-rw-r--r-- | src/libs6rc/s6rc_lock.c | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/doc/faq.html b/doc/faq.html index 9abf75b..b54b79a 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -190,8 +190,12 @@ create a service definition directory named <em>foo</em>: <li> <tt><em>foo</em>/type</tt> contains <tt>oneshot</tt> </li> <li> <tt><em>foo</em>/dependencies</tt> contains the list of dependencies for <em>foo</em> </li> - <li> <tt><em>foo</em>/up</tt> contains <tt>/etc/init.d/<em>foo</em> start</tt> </li> - <li> <tt><em>foo</em>/down</tt> contains <tt>/etc/init.d/<em>foo</em> stop</tt> </li> + <li> <tt><em>foo</em>/up</tt> contains <tt>/etc/init.d/<em>foo</em> start</tt> +if you're using sysv-rc, or <tt>rc-service start foo -D -q</tt> if you're +using OpenRC </li> + <li> <tt><em>foo</em>/down</tt> contains <tt>/etc/init.d/<em>foo</em> stop</tt> +if you're using sysv-rc, or <tt>rc-service stop foo -D -q</tt> if you're +using OpenRC </li> </ul> <p> diff --git a/src/libs6rc/s6rc_lock.c b/src/libs6rc/s6rc_lock.c index 234df9f..75a22be 100644 --- a/src/libs6rc/s6rc_lock.c +++ b/src/libs6rc/s6rc_lock.c @@ -8,7 +8,7 @@ int s6rc_lock (char const *live, int lwhat, int *llfd, char const *compiled, int cwhat, int *ccfd) { - int e ; + int e = 0 ; int lfd = -1, cfd = -1 ; if (lwhat) |