1
This commit is contained in:
@@ -18,4 +18,4 @@
|
|||||||
mode: 0777
|
mode: 0777
|
||||||
backup: no
|
backup: no
|
||||||
- name: shell
|
- name: shell
|
||||||
shell: cd {{ deploy_dir }} && sudo systemctl restart jx-print
|
shell: sudo systemctl restart jx-print
|
||||||
|
|||||||
@@ -4,4 +4,6 @@ if [ ! -d "backup" ]; then
|
|||||||
mkdir backup
|
mkdir backup
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv jx-print.*~ backup/
|
if ls jx-print.*~ > /dev/null 2>&1; then
|
||||||
|
mv jx-print.*~ backup/
|
||||||
|
fi
|
||||||
@@ -1,24 +1,24 @@
|
|||||||
#[Unit]
|
[Unit]
|
||||||
#Description=jx-print service
|
Description=jx-print service
|
||||||
#Wants=mysql.service
|
Wants=mysql.service
|
||||||
#After=network.target
|
After=network.target
|
||||||
#After=mysql.service
|
After=mysql.service
|
||||||
#
|
|
||||||
#[Service]
|
[Service]
|
||||||
#LimitCORE=infinity
|
LimitCORE=infinity
|
||||||
#LimitNOFILE=100000
|
LimitNOFILE=100000
|
||||||
#LimitNPROC=100000
|
LimitNPROC=100000
|
||||||
#
|
|
||||||
#Environment="GOPATH=/home/ubuntu/go/"
|
Environment="GOPATH=/home/ubuntu/go/"
|
||||||
#Type=simple
|
Type=simple
|
||||||
#User=ubuntu
|
User=ubuntu
|
||||||
#Group=ubuntu
|
Group=ubuntu
|
||||||
#
|
|
||||||
#Restart=always
|
Restart=always
|
||||||
#RestartSec=500ms
|
RestartSec=500ms
|
||||||
#
|
|
||||||
#WorkingDirectory=/jxdata/jx-callback-print
|
WorkingDirectory=/jxdata/jx-callback-print
|
||||||
#ExecStart=/bin/sh -c '/jxdata/jx-callback-print/jx-print >> /jxdata/jx-callback-print/jx-print.log 2>&1'
|
ExecStart=/bin/sh -c '/jxdata/jx-callback-print/jx-print >> /jxdata/jx-callback-print/jx-print.log 2>&1'
|
||||||
#
|
|
||||||
#[Install]
|
[Install]
|
||||||
#WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user