laurent22 / rsync-time-backup

Time Machine style backup with rsync.
3.36k stars 443 forks source link

ps -p not supported on busybox systems #236

Open leotulipan opened 3 years ago

leotulipan commented 3 years ago

Line 468 and 474 use ps -p unfortunately this is not supported in busybox systems (i.e. the QNAP NAS I am using)

There is a script which would manually replace ps but it might be more universal to replace the ps -p calls with a combination of ps and grep as seen here

BTW the script does continue to run even with the error output I get. It just doesn't get the chance to see a running process with the PID so would potentially start backup a second time

ps: invalid option -- 'p' BusyBox v1.24.1 (2021-04-28 02:56:13 CST) multi-call binary.