Hello.
I am unable to make systemd/user timer to run.
Here what I have try :
User profile addition ( /home/some_user/.profile ) :
user timer and service configuration :
/home/some_user/config/systemd/user/user_timer.timer
/home/some_user/config/systemd/user/user_timer.service
After enabling the timer
There is a directory : "/home/some_user/config/systemd/user/multi-user.target.wants"
with inside : a link to "user_timer.timer"
journalctl show nothing more 1 time :
Any help is welcome.
I am unable to make systemd/user timer to run.
For clarity :
The user name is : "some_user" (/home/some_user)
Systemd install directory : /home/some_user/config/systemd/userThe user name is : "some_user" (/home/some_user)
Here what I have try :
User profile addition ( /home/some_user/.profile ) :
Code:
systemctl --user
/home/some_user/config/systemd/user/user_timer.timer
Code:
[Unit]
# Directory : /home/some_user/.config/systemd/user
# file : user_timer.timer
Description=start every minutes : /home/some_user/bin/user_timer.service which run /home/some_user/bin/user_script_tmr
[Timer]
# Time to wait after booting before we run first time
#OnBootSec= NOT_IN_USE
#
# Time between running each consecutive time
OnUnitActiveSec=1min
#
Unit=user_timer.service
[Install]
#WantedBy=default.target
WantedBy=multi-user.target
Code:
[Unit]
# Directory : /home/some_user/.config/systemd/user
# file : user_timer.service
# enable with : NOT IN USE
# Started by : user_timer.timer
Description=user_timer.service to run /home/some_user/bin/user_script_tmr
[Service]
EnvironmentFile=/home/some_user/.config/systemd/user/user_timer.conf
#
Type=simple
#
ExecStart=/home/some_user/bin/user_script_tmr ${TEXT}
Code:
systemctl --user enable user_timer.timer
with inside : a link to "user_timer.timer"
Code:
LINUX-TEST-123: systemctl daemon-reload
LINUX-TEST-123: systemctl --user start user_timer.timer
LINUX-TEST-123: systemctl --user status user_timer.timer
user_timer.timer - start every minutes : /home/some_user/bin/user_script_tmr
Loaded: loaded (/home/some_user/.config/systemd/user/user_timer.timer; enabled)
Active: active (elapsed) since Sat 2014-09-27 11:41:30 CEST; 5s ago
Sep 27 11:41:30 LINUX-TEST-123 systemd[3194]: Starting start every minutes : /home/some_user/bin/user_script_tmr.
Sep 27 11:41:30 LINUX-TEST-123 systemd[3194]: Started start every minutes : /home/some_user/bin/user_script_tmr.
LINUX-TEST-123:~ #
Code:
Sep 27 11:41:30 LINUX-TEST-123 systemd[3194]: Starting start every minutes : /home/some_user/bin/user_script_tmr.
Sep 27 11:41:30 LINUX-TEST-123 systemd[3194]: Started start every minutes : /home/some_user/bin/user_script_tmr.