restartcodesys.timer
restartcodesys.timer
lckfb@linux:~/Myworks$ lckfb@linux:~/Myworks$ chmod +x codemeter-lite_7.20.4402.501_arm64.deb lckfb@linux:~/Myworks$ lckfb@linux:~/Myworks$ chmod +x codesyscontrol_linuxarm64_4.1.0.0_arm64.deb lckfb@linux:~/Myworks$ lckfb@linux:~/Myworks$ sudo dpkg -i codemeter-lite_7.20.4402.501_arm64.deb lckfb@linux:~/Myworks$ lckfb@linux:~/Myworks$ sudo dpkg -i codesyscontrol_linuxarm64_4.1.0.0_arm64.deb lckfb@linux:~/Myworks$
lckfb@linux:~$ lckfb@linux:~$ cat /usr/lib/systemd/system/restartcodesys.timer [Unit] Description=Restart Codesys Timer [Timer] OnUnitInactiveSec=110min OnBootSec=3min Persistent=true [Install] WantedBy=timers.target lckfb@linux:~$ lckfb@linux:~$ lckfb@linux:~$ cat /usr/lib/systemd/system/restartcodesys.service [Unit] Description=Restart Codesys Service [Service] ExecStart=/opt/codesys/scripts/restartcodesys.sh [Install] WantedBy=multi-user.target lckfb@linux:~$ lckfb@linux:~$ lckfb@linux:~$ cat /opt/codesys/scripts/restartcodesys.sh #!/bin/sh systemctl restart codemeter && echo restart codemeter done ! systemctl restart codemeter-webadmin && echo restart codemeter-webadmin done ! systemctl restart codesyscontrol && echo restart codesyscontrol done ! lckfb@linux:~$ lckfb@linux:~$ sudo systemctl enable restartcodesys.timer lckfb@linux:~$ lckfb@linux:~$ sudo systemctl enable restartcodesys.service lckfb@linux:~$ lckfb@linux:~$ sudo systemctl restart restartcodesys.timer lckfb@linux:~$ lckfb@linux:~$ sudo systemctl restart restartcodesys.service lckfb@linux:~$ lckfb@linux:~$ ls -alh /etc/systemd/system/timers.target.wants/restartcodesys.timer lrwxrwxrwx 1 root root 40 2月 2 14:08 /etc/systemd/system/timers.target.wants/restartcodesys.timer -> /lib/systemd/system/restartcodesys.timer lckfb@linux:~$ lckfb@linux:~$ lckfb@linux:~$ ls -alh /etc/systemd/system/multi-user.target.wants/restartcodesys.service lrwxrwxrwx 1 root root 42 2月 2 14:08 /etc/systemd/system/multi-user.target.wants/restartcodesys.service -> /lib/systemd/system/restartcodesys.service lckfb@linux:~$
============ End