File tree Expand file tree Collapse file tree
rootfs/etc/systemd/system Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =parkingcam-ms daemon
3+ Wants =res.service
4+ After =network.target
5+
6+ [Service]
7+ User =root
8+ Group =root
9+ WorkingDirectory ={smartdns_path}
10+ ExecStart =/bin/sh run_dns.sh
11+ ExecReload =/bin/kill -s HUP $MAINPID
12+ ExecStop =/bin/kill -s TERM $MAINPID
13+ EnvironmentFile =/etc/environment
14+ PrivateTmp =true
15+ Restart =on-failure
16+ RestartSec =2s
17+
18+ [Install]
19+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change 2929dnsfile=` find $filepath /../../smartdns_env/lib/python* /site-packages/Twisted-12.2.0* /twisted/names -name dns.py`
3030cp -f $filepath /dns_in_twisted.py $dnsfile
3131
32+ cp -rf $filepath /../rootfs/* /
33+ sed -i " s#{smartdns_path}#${filepath} #g" /etc/systemd/system/smartdns.service
34+ systemctl daemon-reload
35+ systemctl enable smartdns
36+ systemctl start smartdns
You can’t perform that action at this time.
0 commit comments