Skip to content

Instantly share code, notes, and snippets.

View jurgonaut's full-sized avatar

Jurij Srebrnič jurgonaut

  • Nova Gorica, Slovenija
View GitHub Profile
@jurgonaut
jurgonaut / pid_wrapper_docker.sh
Last active May 21, 2018 12:33 — forked from the-frey/pid_wrapper_docker.sh
PID Wrapper for Docker and Monit
#!/bin/bash
# First, create a folder: /var/run/monit
# Then, make sure your user or group owns it: chown user:user /var/run/monit
# USAGE:
# use option one to start or stop
# use option two as the docker name
# use option three as the docker run command it follows '-d' f you are starting a container
#