28 Apr 2019

Systemd for auto deploy from AWS

Over the last week I've completely rebuilt the the only on-premise system we have at work. One of the bits I'm rather happy with is the replacement of M/Monit with just plain systemd. We didn't use any of the advanced features of M/Monit, we only wanted ordinary process monitoring and restart on a single system. It really was a bit of overkill.

So, instead of

we now have

There's one more piece to the setup, but

so I think it's a net improvement.

Footnotes:

1

All it does is set a bunch of environment variables and then start the app, so I'm planning on moving the environment variables into a separate file and put the start command the service unit file instead.

Tags: systemd