This website requires JavaScript.
0584e58bae
Change license for Gentoo initscripts
master
Pinkbyte
2013-09-02 23:00:06 +04:00
a1c83a3df2
Split out GAMMU-related code from library into daemon.
Pinkbyte
2013-09-02 22:54:14 +04:00
badad6874c
split GAMMU variable to GAMMU_CFLAGS and GAMMU_LIBS
Pinkbyte
2012-11-12 12:50:24 +04:00
da5e8d0353
first step to make gammu dependency optional
Pinkbyte
2012-11-12 12:24:58 +04:00
430a17e06a
make building daemon optional
Pinkbyte
2012-11-12 11:53:44 +04:00
dbab7f4f27
quick and dirty implementation of IPv6 support for issue #2
Pinkbyte
2012-05-19 02:14:46 +04:00
fb4c7e2e36
move including stdbool header to yasnd-lpt header file as it uses bool variables
Pinkbyte
2012-05-13 19:34:13 +04:00
fa693980a0
Merge branch 'socket'
Pinkbyte
2012-05-13 19:28:05 +04:00
5686c50bdf
parsing exit and reset <LPT pin> commands, rewrite client connection handler and return apropriate status from it
Pinkbyte
2012-05-13 19:25:52 +04:00
0801a4c063
fix inaccuracy in circuit example
Pinkbyte
2012-05-01 13:27:45 +04:00
17274b11b9
modify socket file permissions by changing umask
Pinkbyte
2012-04-28 13:33:21 +04:00
aa32c75389
set correct default socket path
Pinkbyte
2012-04-28 13:27:04 +04:00
f5b42a2aaf
add scheme for simple integrated circuit, that can be connected to LPT port and used with yasnd
Pinkbyte
2012-04-18 14:31:16 +04:00
f5d1239d28
quick and dirty draft implementation of server-side UNIX socket handler
Pinkbyte
2012-04-06 16:05:31 +04:00
7feb436240
socket interconnection skeleton
Pinkbyte
2012-03-23 14:06:39 +04:00
51c8931cbd
migrate last clone call(needed to properly handle incoming SMS messages) to pthread
Pinkbyte
2012-04-06 13:25:22 +04:00
5f63c76d0a
migrate main IPC event loop function call from clone to pthread
Pinkbyte
2012-04-06 13:12:42 +04:00
80d7cb6e16
migrate main loop function call from clone to pthread
Pinkbyte
2012-03-23 17:46:32 +04:00
3d8d32cf1c
change initialization order for properly handle incorrect configuration cases
Pinkbyte
2012-03-28 16:23:02 +04:00
35e65d659e
add return code to stop function in yasnd-early initscript and thus fix syntax error
Pinkbyte
2012-03-28 11:08:41 +04:00
9fd34303ee
Set failures threshold variables type as long, due to unpredictable behaviour of libconfuse on x86_64
Pinkbyte
2012-03-23 17:52:39 +04:00
8c2e9b4dc2
change daemon path in OpenRC scripts
Pinkbyte
2012-03-23 14:08:56 +04:00
5c63ca9358
remove usage of deprecated INCLUDES variable
Pinkbyte
2012-03-23 14:04:39 +04:00
3cb6eda717
change default installation prefix to /usr
Pinkbyte
2012-03-23 14:04:04 +04:00
67ef2242d0
add missing headers definition for automake
Pinkbyte
2012-03-23 13:34:32 +04:00
1a7170cf9f
update to gitignore - add exclusions for libtool and some source files
Pinkbyte
2012-03-23 12:48:35 +04:00
de38500b8f
move phone variables to gammu-related part of yasnd library
Pinkbyte
2012-03-22 17:54:27 +04:00
6aefa54e73
fix warning about implicit declaration of logging function in yasnd-lpt.c
Pinkbyte
2012-03-22 17:38:41 +04:00
92eb3d25ff
move gammu-related code header info into separate file
Pinkbyte
2012-03-22 17:37:01 +04:00
2397a6df06
move lpt and logging functions into library
Pinkbyte
2012-03-22 17:33:11 +04:00
aacb1299d8
Split logging functions into separate files
Pinkbyte
2012-03-22 17:27:26 +04:00
447d6e59e0
Split lpt functions into separate files
Pinkbyte
2012-03-22 17:14:50 +04:00
bc7929b67b
fix infinite loop while parsing command line options
Pinkbyte
2012-03-22 18:37:20 +04:00
a2877a1364
continue code separation into different folders
Pinkbyte
2012-03-18 21:32:46 +04:00
a528959369
OpenRC script for LPT locking on boot
Pinkbyte
2012-03-18 14:15:17 +04:00
012f3ce8ca
implement new version of lpt_lock call to properly handle early calls of this function
Pinkbyte
2012-03-18 14:11:09 +04:00
ddda04d12f
replace command line arguments parser with built-in getopt code
Pinkbyte
2012-03-13 15:56:43 +04:00
dad8fb8329
move gammu-related code to shared library
Pinkbyte
2012-02-23 22:03:31 +04:00
525675c96f
remove hardcoded path for m4
Pinkbyte
2012-02-23 13:59:11 +04:00
8159ff04d2
begin to separate potentially shared code into library
Pinkbyte
2012-02-23 13:36:48 +04:00
131ea70b6a
fix improper SIGTERM handling, improve freeing resources
Pinkbyte
2012-01-03 04:51:57 +04:00
5e3891a985
remove unnecessary --make-pidfile option from init script. Fix copyright header
Pinkbyte
2012-01-03 03:51:11 +04:00
9668922f8f
Revert "remove unneeded fork(for now)" This reverts commit 955aeb64b7 . Implement pid file management and locking. Only single instance of daemon is allowed
Pinkbyte
2012-01-03 03:48:26 +04:00
1610c1394f
make failures thresholds configurable
Pinkbyte
2012-01-03 03:05:53 +04:00
0c2ff3313e
add example of configuration file
Pinkbyte
2011-12-31 11:50:17 +04:00
eee04e2563
fix LPT pin numeration
Pinkbyte
2011-12-31 11:48:35 +04:00
233f9ffab0
improve checking of "lpt_enable" variable
Pinkbyte
2011-12-31 11:46:30 +04:00
828d9323cc
implement LPT locking which will be used early on boot
Pinkbyte
2011-12-31 11:43:17 +04:00
7bddf7353e
make LPT reset function to work properly
Pinkbyte
2011-12-20 19:16:43 +04:00
71910fa888
add init script for OpenRC
Pinkbyte
2011-12-20 18:06:34 +04:00
955aeb64b7
remove unneeded fork(for now)
Pinkbyte
2011-12-20 18:01:46 +04:00
d9858da0d4
change default installation path for yasnd binary to /sbin
Pinkbyte
2011-12-20 17:33:51 +04:00
73bdb15644
rename variable "sms_send_enable" to "sms_enable"
Pinkbyte
2011-12-20 17:05:53 +04:00
671d569f36
implement SMS reading
Pinkbyte
2011-12-20 17:02:34 +04:00
fba4ffb66e
fork SMS sending process
Pinkbyte
2011-12-20 13:23:13 +04:00
d8829305fc
implement SMS sending via IPC queue loop
Pinkbyte
2011-12-19 18:35:14 +04:00
94e7bc7478
add missing features to configure.ac
Pinkbyte
2011-12-19 18:34:44 +04:00
c2aa0ac0ab
implement reaction system, based on the amount of time that host is offline
Pinkbyte
2011-12-19 17:02:42 +04:00
bc36207f1f
make delay between iterations more predictable
Pinkbyte
2011-12-19 15:56:34 +04:00
323eb556c8
add LPT pin number to host structure
Pinkbyte
2011-12-19 15:19:18 +04:00
240aa35786
change host structure definition in config file
Pinkbyte
2011-12-19 14:52:57 +04:00
d4f632689a
remove unneeded whitespace
Pinkbyte
2011-12-19 13:31:40 +04:00
bb6b2328aa
implement proper LPT control circuit init on daemon start
Pinkbyte
2011-12-19 11:22:17 +04:00
e7d900d9b7
some code exports reorganization and cleanups
Pinkbyte
2011-12-19 11:08:19 +04:00
989ca201e4
lock LPT control circuit when receiving SIGTERM
Pinkbyte
2011-12-19 10:07:48 +04:00
4c1fb5fa9d
make LPT port configurable
Pinkbyte
2011-12-19 09:56:50 +04:00
7ecbe35d83
move Main Loop to a separate clone process
Pinkbyte
2011-12-18 12:07:40 +04:00
52b69a0196
initialize gammu only when enabled in config
Pinkbyte
2011-12-17 19:49:12 +04:00
796be414fc
implement function for SMS reading
Pinkbyte
2011-12-17 19:47:58 +04:00
85f8da54a5
move freeing IPC resources in separate function
Pinkbyte
2011-12-14 18:13:42 +04:00
16d950f98d
implement IPC messaging with queue loop
Pinkbyte
2011-12-14 17:52:13 +04:00
1338bd660b
fix warning about implicit declaration of log_debug()
Pinkbyte
2011-12-14 10:41:40 +04:00
b285350e36
implement host failures count threshold, before sending first SMS
Pinkbyte
2011-12-13 19:15:45 +04:00
75c7a1be71
implement LPT pin "reset" function
Pinkbyte
2011-12-13 19:09:17 +04:00
8f39695140
main loop locking and config re-reading on SIGHUP
Pinkbyte
2011-12-12 15:03:45 +04:00
eeb0166fa7
prevent duplicate alerts on same problem with host
Pinkbyte
2011-12-12 14:31:18 +04:00
1036bd84f2
config file options to define phone parameters
Pinkbyte
2011-12-12 14:10:05 +04:00
03f76b6a26
remove differencies between logged messages and messages sent by SMS
Pinkbyte
2011-12-12 13:54:37 +04:00
e7cc358a82
add explicit return of pointer to allocated memory
Pinkbyte
2011-12-12 13:51:22 +04:00
cbd115f22c
option to enable/disable SMS sending
Pinkbyte
2011-12-12 13:47:43 +04:00
849e8dc502
option to define SMS recipient via config
Pinkbyte
2011-12-12 13:28:07 +04:00
1d7c2b6a15
log success sms sending only when debugging, log failures always
Pinkbyte
2011-12-12 13:06:00 +04:00
e6d0c3610e
initial implementation of sms sending
Pinkbyte
2011-11-30 16:21:34 +04:00
3e183be533
Move gammu-related functions into separate file. Change "check_gammu_error" function to return error state. Some configure.ac dependecies added
Pinkbyte
2011-11-29 13:47:48 +04:00
9f78ad8d03
add gammu initialization code
Pinkbyte
2011-11-25 18:30:16 +04:00
d0f8301436
link with libGammu
Pinkbyte
2011-11-25 17:52:53 +04:00
cacb7c46e3
make config structure pointer global
Pinkbyte
2011-11-25 17:50:47 +04:00
4aa37602ec
free memory for config structure explicitly
Pinkbyte
2011-11-25 17:45:50 +04:00
ab22d61262
add check for empty hosts' list
Pinkbyte
2011-11-25 17:42:48 +04:00
bc7c1edb41
option for log verbosity level
Pinkbyte
2011-11-25 17:35:33 +04:00
c93b612597
hosts' list are now defined via config file
Pinkbyte
2011-11-25 17:04:49 +04:00
748bd4d10a
begin to implent libconfuse usage
Pinkbyte
2011-11-17 15:45:44 +04:00
e007355bd3
fix missing license info in README
Pinkbyte
2011-11-16 15:57:09 +04:00
08aca40316
initial work on daemon
Pinkbyte
2011-11-15 17:53:12 +04:00
ff3f30d3a6
initial commit
Pinkbyte
2011-11-15 14:41:46 +04:00