Facebook
From Anorexic Prairie Dog, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 183
  1.  [Unit]
  2.  Description=APP Health check service
  3.  After=network.target
  4.  StartLimitIntervalSec=0
  5.  
  6.  [Service]
  7.  Type=simple
  8.  ExecStart=/bin/bash /path/to/shellscript.sh
  9.  ExecStop=/bin/kill -15 $MAINPID
  10.  Restart=always
  11.  RestartSec=5s
  12.  
  13.  [Install]
  14.  WantedBy=multi-user.target
  15.