aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use CLOCK_BOOTTIME rather than CLOCK_MONOTONICMattias Andrée2015-12-281-3/+3
| | | | | | | | This allows use to be suspend-aware and we do not have to deal with the processes may not have the same epoch on CLOCK_MONOTONIC. Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* ...Mattias Andrée2015-12-282-19/+46
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* satd: exec to an image without init textMattias Andrée2015-12-282-4/+53
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-281-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* we do not need to be able to pass the file descriptor via well defined fd:s now that we can keep the socket when called daemoniseMattias Andrée2015-12-281-22/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* update daemonise, and daemonise when fully initialisedMattias Andrée2015-12-283-11/+126
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* reorder actionsMattias Andrée2015-12-281-15/+15
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* docMattias Andrée2015-12-281-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* get hook-script pathnameMattias Andrée2015-12-281-1/+55
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* whitespaceMattias Andrée2015-12-281-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* the socket can be passed via stdinMattias Andrée2015-12-281-5/+34
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-281-1/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* unlink socket on flock failureMattias Andrée2015-12-281-1/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* docMattias Andrée2015-12-281-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* fix errors + use flock on socketMattias Andrée2015-12-282-8/+37
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* listenMattias Andrée2015-12-281-0/+15
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-281-8/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* fix errors and tidy upMattias Andrée2015-12-2810-235/+206
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* the socket shall be opened on fd 3 (you will see why later)Mattias Andrée2015-12-281-0/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* docMattias Andrée2015-12-281-0/+10
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* remove empty environment entiresMattias Andrée2015-12-261-0/+15
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* job ids must not be empty stringsMattias Andrée2015-12-262-2/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* marshalled arrays are not empty-element-terminatedMattias Andrée2015-12-262-5/+6
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* create socketMattias Andrée2015-12-261-3/+76
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-261-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-261-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* send jobMattias Andrée2015-12-251-7/+16
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* satr run select jobs + satrm can remove multiple jobsMattias Andrée2015-12-255-44/+113
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* improve send_commandMattias Andrée2015-12-255-21/+37
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* it shall be possible to slect jobs in satrMattias Andrée2015-12-251-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* daemoniseMattias Andrée2015-12-253-7/+81
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* satd: command lineMattias Andrée2015-12-241-0/+34
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-231-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* daemoniseMattias Andrée2015-12-232-0/+460
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* client.hMattias Andrée2015-12-232-0/+97
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* m fixMattias Andrée2015-12-233-14/+6
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* satrmMattias Andrée2015-12-231-1/+43
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* implement satq and satr, just sends a commandMattias Andrée2015-12-232-2/+34
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* satq and satr does not take any argumentsMattias Andrée2015-12-232-0/+52
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* all of the commandsMattias Andrée2015-12-235-0/+122
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* m + construct msg for daemonMattias Andrée2015-12-231-13/+62
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* fix possible overflowMattias Andrée2015-12-231-4/+13
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* parse argumentsMattias Andrée2015-12-233-0/+433
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>