• Systemd start/stop scripts for MIS

    From lemonlime@21:4/162 to All on Mon Sep 30 16:34:40 2019
    Hi All,

    I've been working on my BBS running on a Debian 9 box for the last few weeks and have been looking for a good way to start/stop the mis daemon. Since
    newer distros are moving to systemd services rather than init.d scripts, I decided to take a crack at creating some. In addition to starting/stopping
    mis, they also have a few other useful features:

    - stale mis.bsy semaphore detection and cleanup.
    - process start confirmation.
    - proper exit codes to inform systemd of start/stop failures.
    - PID verification.
    - The option to do a 'kill -9' if mis takes too long to stop gracefully.

    I've also created a set of similar scripts for MRC (multi relay chat) and
    will get those polished up soon. You can find the download and instructions
    on my blog: https://vswitchzero.com/mystic-systemd

    Hope others will find this useful.

    Cheers,
    Mike

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: vswitchzero BBS (21:4/162)
  • From Zip@21:1/202 to lemonlime on Tue Oct 1 05:53:40 2019
    Hello lemonlime!

    On 30 Sep 2019, lemonlime said the following...
    Since newer distros are moving to systemd services rather than init.d scripts, I decided to take a crack at creating some. In addition to

    I did, too, a short while ago (see a previous post of mine). :-)

    However I didn't create any init scripts but only went for a systemd service file. Like in your scripts, it removes any stale lock files as those could be the result of a [system] crash or so, preventing MIS from starting up again
    if present.

    Best regards
    Zip

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From lemonlime@21:4/162 to Zip on Tue Oct 1 07:39:44 2019
    I did, too, a short while ago (see a previous post of mine). :-)

    However I didn't create any init scripts but only went for a systemd service file. Like in your scripts, it removes any stale lock files as those could be the result of a [system] crash or so, preventing MIS from starting up again if present.

    Hi Zip! Cool! I wish I saw that post before. I'd love to see how you did that all within the systemd service file. I'm still learning how to use systemd.

    Cheers,
    Mike

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: vswitchzero BBS (21:4/162)
  • From Zip@21:1/202 to lemonlime on Wed Oct 2 20:41:28 2019
    Hello lemonlime!

    On 01 Oct 2019, lemonlime said the following...
    Hi Zip! Cool! I wish I saw that post before. I'd love to see how you did that all within the systemd service file. I'm still learning how to use systemd.

    Still learning here, too. :-)
    But beginning to like some aspects of systemd after all. :-)

    I'll forward my old message to you via netmail.

    Best regards
    Zip

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From lemonlime@21:4/162 to Zip on Thu Oct 3 08:41:54 2019
    Still learning here, too. :-)
    But beginning to like some aspects of systemd after all. :-)

    I'll forward my old message to you via netmail.

    Much appreciated! I have to admit that I'm starting to like the systemd
    service scripts too after getting some experience with them. I had gotten so used to init.d over the years, so it took some getting used to.

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: vswitchzero BBS (21:4/162)