termux-api-package: termux-job-scheduler hangs without any message

Hi,

I’m trying to schedule a job as follows: termux-job-scheduler --period-ms 86400000 --script /storage/emulated/0/Backup/rsync.sh --network any

The script is simply a small rsync job to sync some photos. When I issue the command, nothing happens.

I thought it might be related to https://github.com/termux/termux-api-package/issues/78 or https://github.com/termux/termux-api/issues/276 but it doesn’t seem so.

Thanks

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 20 (7 by maintainers)

Most upvoted comments

Is there any update to this? I’ve changed devices and reinstalled both termux as well as termux-api but the issue persists.

Perhaps I’m nitpicking but did you also install the app below?

https://f-droid.org/en/packages/com.termux.api/

I experienced this behaviour.

Turn’s out I didn’t have termux:api installed from Google Play (or F-droid, for that matter).

Installing the APK solved for me.

So pkg install termux-api isn’t enough? We need to install another apk to get this to work?