How to stop the Timekoin script(s) from the command line?

Having issues with your Timekoin Server? Someone might be able to answer your questions here.
Post Reply
d5000
Posts: 30
Joined: Sun Dec 15, 2013 6:11 pm

How to stop the Timekoin script(s) from the command line?

Post by d5000 »

Hi,

I am searching for a method to stop the Timekoin server from the command line of the web server. I tried the following methods, and unfortunately no one works:

1) stopping it in a similar way to the command to start if from a cronjob when rebooted (from the Digital Ocean tutorial):
wget -qO- "http://localhost/timekoin/index.php?men ... &stop=main" &> /dev/null

2) stopping it via status.php replacing "TIMEKOIN_DISABLED" "0" with "1" (don't know if this works this way, but in the technical document it seemed to be a possibility)

3) stopping it via the API with an authorized api key (key seems fine, checked it several times):
wget -qO- "http://localhost/timekoin/api.php?[api-key]&action=tk_start_stop&active=2" &> /dev/null

No one of these methods had an effect on my Timekoin server. Does someone know what am I doing wrong? Is there any documentation for this issue (e.g. for the API call tk_start_stop)?

OS is Ubuntu 14.04.

Thanks for any help!
d5000
User avatar
tiker
Posts: 81
Joined: Wed Jun 20, 2012 2:13 pm
Contact:

Re: How to stop the Timekoin script(s) from the command line

Post by tiker »

d5000 wrote: 3) stopping it via the API with an authorized api key (key seems fine, checked it several times):
wget -qO- "http://localhost/timekoin/api.php?[api-key]&action=tk_start_stop&active=2" &> /dev/null
Just to be sure it's not a typo, you missed "hash=" part...

wget -qO- "http://localhost/timekoin/api.php?[b]hash=[/b][api-key]&action=tk_start_stop&active=2" &> /dev/null
d5000
Posts: 30
Joined: Sun Dec 15, 2013 6:11 pm

Re: How to stop the Timekoin script(s) from the command line

Post by d5000 »

Thanks! That was the problem, now I could stop the server. I had used the request format of the following post:

http://forums.timekoin.org/viewtopic.ph ... t=10#p1293

where there are neither "key=" or "hash=" parameters. But obvioulsy the post is pretty old.

If someone knows: Is there a actualized tutorial/documentation about the API somewhere in the forum?
User avatar
tiker
Posts: 81
Joined: Wed Jun 20, 2012 2:13 pm
Contact:

Re: How to stop the Timekoin script(s) from the command line

Post by tiker »

I don't believe there's any official API documents yet. I've read through the code (for something else I was working on) so I know what it's looking for.
Post Reply