service file
This commit is contained in:
parent
d8f35a127a
commit
bf520d25b8
@ -19,7 +19,7 @@
|
|||||||
"topics": [ "IoT/RainSensor1/#" ],
|
"topics": [ "IoT/RainSensor1/#" ],
|
||||||
"encapsulate": true,
|
"encapsulate": true,
|
||||||
"parsePayload": true,
|
"parsePayload": true,
|
||||||
"verbose": true
|
"verbose": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
18
mqttMongo.service
Normal file
18
mqttMongo.service
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=mqttMongo
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
GuessMainPID=yes
|
||||||
|
ExecStart=/usr/bin/npm start -- -c MqttMongoNodejs-Prod.conf
|
||||||
|
ExecStop=kill -SIGINT $mainpid
|
||||||
|
Restart=on-failure
|
||||||
|
WorkingDirectory=/opt/services/MqttMongoNodejs
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
Alias=mqttMongo
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user