Systemd User Services
user service location: ~/.config/systemd/user/testecho.service
# testecho.service
[Unit]
Description=echotest service
Documentation=null
[Service]
Type=simple
ExecStart=/bin/bash -c "/usr/bin/java -jar /home/jxyu/datedemo.jar >> /home/jxyu/test.txt"
# following commands can start/stop or check it status
# systemctl –user start testecho.service
# systemctl –user stop testecho.service
# systemctl –user status testecho.service
reference: systemd.service