Graceful Shutdown method?

78 views
Skip to first unread message

leeand00

unread,
Jun 9, 2016, 7:09:29 PM6/9/16
to TiddlyWikiDev
I'm looking into using unit files and systemd to start and stop my node.js tiddlywiki server instances.

Is there any way to stop them using a command instead of just outright killing the process?

(from this post: https://groups.google.com/forum/#!topic/tiddlywiki/JVurUcbLxiw)

Thank you,
    Andrew J. Leer

Jeremy Ruston

unread,
Jun 14, 2016, 12:11:59 PM6/14/16
to tiddly...@googlegroups.com
Hi Andrew

I'm looking into using unit files and systemd to start and stop my node.js tiddlywiki server instances.

Great stuff, I'll look forward to seeing the results if you're able to share.

Is there any way to stop them using a command instead of just outright killing the process?

The problem here is that the `--server` command loops endlessly. We'd need a pull request to `server.js` to make it listen for a signal, and exit when it receives it. All other commands run to completion and then exit.

Best wishes

Jeremy


(from this post: https://groups.google.com/forum/#!topic/tiddlywiki/JVurUcbLxiw)

Thank you,
    Andrew J. Leer

--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/9d02f59c-3aca-4f4f-bff5-859857cd60c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages