scenarios when trying to use systemd timers instead of cron on Debian 11: 'scenarios to create unit file'
I tried several approaches but none seem to work... I'm wondering if anyone has experience with I'm trying to replace my cron jobs with systemd timers on a Debian 11 server, but I'm working with an scenario when creating the service file. I've defined a simple service and timer, but when I run `systemctl start my-timer.timer`, I get the behavior: `Failed to create unit file /etc/systemd/system/my-timer.timer.d: No such file or directory`. I have already verified that my user has the necessary permissions to create files in `/etc/systemd/system`. Hereβs how I set it up: 1. I created the service file `/etc/systemd/system/my-service.service` with the following content: ```ini [Unit] Description=My Example Service [Service] Type=oneshot ExecStart=/usr/bin/echo 'Hello from systemd!' ``` 2. Then, I created the timer file `/etc/systemd/system/my-timer.timer` with this content: ```ini [Unit] Description=Runs my-service every minute [Timer] OnUnitActiveSec=1min [Install] WantedBy=timers.target ``` After creating these files, I tried `systemctl daemon-reload`, but the behavior continues when starting the timer. I also checked the syntax using `systemd-analyze verify /etc/systemd/system/my-timer.timer`, and it returned no errors. What could be causing this scenario? Am I missing a necessary directory or configuration? Any insights would be greatly appreciated! This issue appeared after updating to Ini 3.10. What am I doing wrong? Am I missing something obvious?