====== create a customized daemon via systemd ======
Create a ppa.service under folder /etc/systemd/system
sudo chmod +x /etc/systemd/system/ppa.service
sudo systemctl enable ppa
sudo systemctl status ppa
sudo systemctl daemon-reload
File /etc/systemd/system/ppa.service
[Unit]
Description=ppa deamon
After=mysql.service
After=network.service
[Service]
#ExecStart= /testserver/d.sh
ExecStart= /testserver/dispatch/dispatch.py
[Install]
WantedBy=default.target
====== Singapore Timezone ======
sudo dpkg-reconfigure tzdata
sudo apt-get install ntp
timedatectl
Local time: Min 2016-12-18 17:00:11 SGT
Universal time: Min 2016-12-18 09:00:11 UTC
RTC time: Min 2016-12-18 09:00:11
Time zone: Asia/Singapore (SGT, +0800)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no