You are not logged in.

#1 2023-09-18 02:21:31

zoldseges
Member
From: Hungary
Registered: 2022-02-28
Posts: 7

[SOLVED] Can't enable systemd job. No "timers.taget" unit.

It's my first time trying trying to use systemd, so please forgive me, if I slipped on some basic stuff. I've got this:

# /etc/systemd/system/my_little_script.timer
[Unit]
Description=Example

[Timer]
OnCalendar=Sun *-*-* 10:00:00
Persistent=true

[Install]
WantedBy=timers.taget
# /etc/systemd/system/my_little_script.service
[Unit]
Description=Runnig my _little_script

[Service]
Type=simple
ExecStart=/home/adam/scripts/my_little_script.sh
User=root

And I fail here:

$ systemctl my_little_script.timer
Failed to enable unit: "timers.taget" is not a valid unit name.

My hunch is that I should config something on systemd or install some package, but nowhere I found that someone had such an issue. What wrong / what should I try?

Last edited by zoldseges (2023-09-18 03:42:28)

Offline

#2 2023-09-18 02:38:07

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] Can't enable systemd job. No "timers.taget" unit.

It's a typo. target, not taget.

Offline

#3 2023-09-18 03:41:19

zoldseges
Member
From: Hungary
Registered: 2022-02-28
Posts: 7

Re: [SOLVED] Can't enable systemd job. No "timers.taget" unit.

I knew I'll feel stupid. Thanks!

Offline

Board footer

Powered by FluxBB