tcp server 用于给andriod 客户端定时发送消息
liuxiaolong
2020-08-01 40da5003a4599ab1b8c5e100f08c4a21848054ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#/lib/systemd/system/andriodAlarmServer.service                                 
[Unit]
Description=systemd service unit andriodAlarmServer
Documentation=http://startai.com
After=network.target rabbitmq-server.service
 
[Service]
Type=simple
ExecStart=/opt/androidAlarm/andriodServer
ExecStop=/bin/kill -s HUP $MAINPID
KillSignal=SIGQUIT
KillMode=process
PrivateTmp=true
 
[Install]
WantedBy=multi-user.target