[Unit] Description=KingHistorian server service After=network-online.target taosadapter.service Wants=network-online.target taosadapter.service [Service] Type=simple ExecStart=/usr/bin/khserver ExecStartPre=/usr/local/kinghistorian/bin/startPre.sh TimeoutStopSec=1000000s LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity TimeoutStartSec=0 StandardOutput=null Restart=always StartLimitBurst=3 StartLimitInterval=60s [Install] WantedBy=multi-user.target