Daemon restart?

Asked by Christoph W

Hi, I use timekpr-next distributed over some PCs using a NAS where the config folder is stored (quite alike described in question https://answers.launchpad.net/timekpr-next/+question/695453). With this setup my kid can access different computers, and I can manage her time from the PC I am sitting if needed. I can even use my Phone to access her remote "time" file and manually reduce the TIME_SPEND_BALANCE in a text editor to grant some extra minutes.

Today it happened I booted without receiving a network connection right away. When I received it, timekpr's daemon had timed out already, and I could not revive it to re-access the NAT settings. No big deal, but it lead to the question:
Is there a way to restart the daemon without having to reboot?

Thanks for your help!

Question information

Language:
English Edit question
Status:
Solved
For:
Timekpr-nExT Edit question
Assignee:
Eduards Bezverhijs Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

The command

systemctl restart timekpr

will restart the daemon.

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#2

Manfred is correct, type the command and you are set.

In addition, you can use commandline tool to manage the time:
    sudo timekpra --help

That will print out commandline usage guide, go from there.

Revision history for this message
Christoph W (chw9999) said :
#3

Thank you both for the swift and helpful answers!
I see I can even faster reward my kid with
sudo timekpra --settimeleft 'testuser' '+' 3600
no need to log into the control panel ;)