[GH-ISSUE #57] Stop --daemonize #37

Closed
opened 2026-03-03 16:03:54 +03:00 by kerem · 8 comments
Owner

Originally created by @ajitam on GitHub (Jan 8, 2016).
Original GitHub issue: https://github.com/mthenw/frontail/issues/57

first of all - great script!

if I run frontail with -d param. How do I stop it?

Originally created by @ajitam on GitHub (Jan 8, 2016). Original GitHub issue: https://github.com/mthenw/frontail/issues/57 first of all - great script! if I run frontail with -d param. How do I stop it?
kerem 2026-03-03 16:03:54 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@mthenw commented on GitHub (Jan 8, 2016):

$ kill :)

<!-- gh-comment-id:170016786 --> @mthenw commented on GitHub (Jan 8, 2016): `$ kill` :)
Author
Owner

@ajitam commented on GitHub (Jan 11, 2016):

hmm I get

$ kill :)
$ -bash: syntax error near unexpected token `)'

hehe just messing with you. That was my initial plan - to run it with

$ ... --pid-path ~/.frontail/daemon.pid

but the problem is that process make a 'sub process'

$ ps axjf

...


    1 10687 10687 10687 ?           -1 Ssl   1000   0:15 /usr/bin/nodejs /home/user/.npm-global/lib/node_modules/frontail/index.js -h 0.0.0.0 -p 8888 -n 1
10687 10692 10687 10687 ?           -1 S     1000   0:00  \_ tail -n 10 -F /home/user/log.log

and when I kill the first one (the one I have PID for), second one (tail ...) remains :/

<!-- gh-comment-id:170451832 --> @ajitam commented on GitHub (Jan 11, 2016): hmm I get ``` $ kill :) $ -bash: syntax error near unexpected token `)' ``` hehe just messing with you. That was my initial plan - to run it with ``` $ ... --pid-path ~/.frontail/daemon.pid ``` but the problem is that process make a 'sub process' ``` $ ps axjf ... 1 10687 10687 10687 ? -1 Ssl 1000 0:15 /usr/bin/nodejs /home/user/.npm-global/lib/node_modules/frontail/index.js -h 0.0.0.0 -p 8888 -n 1 10687 10692 10687 10687 ? -1 S 1000 0:00 \_ tail -n 10 -F /home/user/log.log ``` and when I kill the first one (the one I have PID for), second one (`tail ...`) remains :/
Author
Owner

@mthenw commented on GitHub (Jan 11, 2016):

Damn! Looks like https://github.com/mthenw/frontail/blob/master/lib/tail.js#L43 is not working. Thanks for reporting!

<!-- gh-comment-id:170485023 --> @mthenw commented on GitHub (Jan 11, 2016): Damn! Looks like https://github.com/mthenw/frontail/blob/master/lib/tail.js#L43 is not working. Thanks for reporting!
Author
Owner

@ajitam commented on GitHub (Jan 11, 2016):

For debug

node v0.10.35
Ubuntu 15.10
<!-- gh-comment-id:170490479 --> @ajitam commented on GitHub (Jan 11, 2016): For debug ``` node v0.10.35 Ubuntu 15.10 ```
Author
Owner

@mthenw commented on GitHub (Jan 11, 2016):

v2.1.2 published to NPM :)

<!-- gh-comment-id:170492771 --> @mthenw commented on GitHub (Jan 11, 2016): v2.1.2 published to NPM :)
Author
Owner

@ajitam commented on GitHub (Jan 11, 2016):

well that was fast!

updated, tested, WORKS!

<!-- gh-comment-id:170493519 --> @ajitam commented on GitHub (Jan 11, 2016): well that was fast! updated, tested, WORKS!
Author
Owner

@zubair1024 commented on GitHub (Jun 29, 2017):

hey, I don't get it, is there an easy way to stop the daemon, I have multiple frontail processes running. How do I stop them all?

<!-- gh-comment-id:311907088 --> @zubair1024 commented on GitHub (Jun 29, 2017): hey, I don't get it, is there an easy way to stop the daemon, I have multiple frontail processes running. How do I stop them all?
Author
Owner

@ajitam commented on GitHub (Jul 3, 2017):

One way is to create the scripts which starts all the demons in na loop

frontail [all the cmd] --pid-path ~/path/to/some/location/d1.pid
frontail [all the cmd] --pid-path ~/path/to/some/location/d2.pid

and then when you want to stop them you loop over .pid-s in ~/path/to/some/location/ and kill one by one

<!-- gh-comment-id:312560407 --> @ajitam commented on GitHub (Jul 3, 2017): One way is to create the scripts which starts all the demons in na loop ``` frontail [all the cmd] --pid-path ~/path/to/some/location/d1.pid frontail [all the cmd] --pid-path ~/path/to/some/location/d2.pid ``` and then when you want to stop them you loop over `.pid`-s in `~/path/to/some/location/` and kill one by one
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#37
No description provided.