diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-10-25 00:19:07 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-10-25 00:19:07 +0200 |
commit | 9e38736b93a6b737ecb53d1f41dadf45cbb22c1c (patch) | |
tree | 33cda4d193d83772e7fd0f45e7101452497be7d3 /roles/ands_pods/templates/services/distcc.service | |
parent | 15890ccdef55168e9753ff6957ce64096837c627 (diff) | |
download | itm-9e38736b93a6b737ecb53d1f41dadf45cbb22c1c.tar.gz itm-9e38736b93a6b737ecb53d1f41dadf45cbb22c1c.tar.bz2 itm-9e38736b93a6b737ecb53d1f41dadf45cbb22c1c.tar.xz itm-9e38736b93a6b737ecb53d1f41dadf45cbb22c1c.zip |
Various stuff to pre-configure compute nodes
Diffstat (limited to 'roles/ands_pods/templates/services/distcc.service')
-rw-r--r-- | roles/ands_pods/templates/services/distcc.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/ands_pods/templates/services/distcc.service b/roles/ands_pods/templates/services/distcc.service new file mode 100644 index 0000000..a754fb4 --- /dev/null +++ b/roles/ands_pods/templates/services/distcc.service @@ -0,0 +1,17 @@ +[Unit] +Description=DistCC Podman Container +After=network.target + +[Service] +Type=simple +TimeoutStartSec=5m +ExecStartPre=-/usr/bin/podman rm "distcc" +ExecStart=/usr/bin/podman run --name distcc -p 3632:3632 chsa/distcc:latest +ExecReload=-/usr/bin/podman stop "distcc" +ExecReload=-/usr/bin/podman rm "distcc" +ExecStop=-/usr/bin/podman stop "distcc" +Restart=always +RestartSec=30 + +[Install] +WantedBy=multi-user.target |