diff --git a/deploy/jx-callback.service b/deploy/jx-callback.service new file mode 100644 index 0000000..3e81fde --- /dev/null +++ b/deploy/jx-callback.service @@ -0,0 +1,24 @@ +[Unit] +Description=jx-print service +Wants=mysql.service +After=network.target +After=mysql.service + +[Service] +LimitCORE=infinity +LimitNOFILE=100000 +LimitNPROC=100000 + +Environment="GOPATH=/home/ubuntu/go/" +Type=simple +User=ubuntu +Group=ubuntu + +Restart=always +RestartSec=500ms + +WorkingDirectory=/jxdata/jx-callback-print +ExecStart=/bin/sh -c '/jxdata/jx-callback-print/jx-print >> /jxdata/jx-callback-print/jx-callback.log 2>&1' + +[Install] +WantedBy=multi-user.target \ No newline at end of file