aboutsummaryrefslogtreecommitdiffstats
path: root/src/daemonise.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-12-28use CLOCK_BOOTTIME rather than CLOCK_MONOTONICMattias Andrée1-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>
2015-12-28...Mattias Andrée2-19/+46
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28satd: exec to an image without init textMattias Andrée2-4/+53
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28mMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28we 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ée1-22/+4
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28update daemonise, and daemonise when fully initialisedMattias Andrée3-11/+126
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28reorder actionsMattias Andrée1-15/+15
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28docMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28get hook-script pathnameMattias Andrée2-1/+63
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28typoMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28whitespaceMattias Andrée1-0/+1
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28the socket can be passed via stdinMattias Andrée1-5/+34
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28mMattias Andrée1-1/+4
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28unlink socket on flock failureMattias Andrée1-1/+4
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28docMattias Andrée1-0/+1
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28fix errors + use flock on socketMattias Andrée2-8/+37
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28listenMattias Andrée1-0/+15
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28mMattias Andrée1-8/+4
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28fix errors and tidy upMattias Andrée10-235/+206
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28the socket shall be opened on fd 3 (you will see why later)Mattias Andrée1-0/+4
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-28docMattias Andrée1-0/+10
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-26remove empty environment entiresMattias Andrée1-0/+15
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-26job ids must not be empty stringsMattias Andrée2-2/+4
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-26marshalled arrays are not empty-element-terminatedMattias Andrée2-5/+6
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-26create socketMattias Andrée1-3/+76
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-26mMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-26mMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-25send jobMattias Andrée1-7/+16
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-25satr run select jobs + satrm can remove multiple jobsMattias Andrée5-44/+113
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-25improve send_commandMattias Andrée5-21/+37
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-25it shall be possible to slect jobs in satrMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-25daemoniseMattias Andrée3-7/+81
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-24satd: command lineMattias Andrée1-0/+34
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23mMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23daemoniseMattias Andrée2-0/+460
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23client.hMattias Andrée2-0/+97
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23m fixMattias Andrée3-14/+6
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23satrmMattias Andrée1-1/+43
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23implement satq and satr, just sends a commandMattias Andrée2-2/+34
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23at should not be merge into cronMattias Andrée1-0/+4
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23satq and satr does not take any argumentsMattias Andrée2-0/+52
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23all of the commandsMattias Andrée5-0/+122
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23no load analysisMattias Andrée1-0/+3
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23mMattias Andrée1-1/+2
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23m readmeMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23m + construct msg for daemonMattias Andrée1-13/+62
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23fix possible overflowMattias Andrée1-4/+13
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23parse argumentsMattias Andrée4-1/+434
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
2015-12-23readme: considerations when using autohaltd tooMattias Andrée1-0/+8
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>