ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
66377
|
Thu Jun 4 18:49:29 2009 |
| Paul T. Keener | keener@hep.upenn.edu | Bug report | Other | 2.7.5 | Re: elogd dies after receiving second SIGHUP | > > > > elogd continues to run after a SIGHUP. If a second SIGHUP is received the daemon terminates.
> > > > This was observed on Solaris 10 (SPARC).
> > > > The documentation states that elogd should re-read configuration after receiving SIGHUP.
> > >
> > > I tried to reproduce this but without success. I could send many SIGHUPs without the daemon terminating. Maybe
> > > you modified the configuration file in between and elogd barked out because of some wrong configuration? Try to
> > > start the daemon interactively and see what exactly happens if you send several SIGHUPs.
> >
> > The problem is that under Solaris signal handlers installed via signal() get uninstalled *before* the signal handler
> > is called. Thus the second time elogd receives a SIGHUP, you get the default action, which is to kill the process.
> >
> > The solution is to use the POSIX sigaction() call instead of signal().
>
> Can you try to modify the signal() calls into sigaction(). If this really works under Solaris, I will incorporate this
> then into the distribution.
Here is the patch. It works under both Solaris and Linux. |
Attachment 1: elogd-signal.patch
|
*** src/elogd.c-orig 2009-04-14 04:16:02.000000000 -0400
--- src/elogd.c 2009-06-04 11:33:31.337804000 -0400
***************
*** 27553,27558 ****
--- 27553,27565 ----
SSL_CTX *ssl_ctx;
#endif
+ /*
+ * sigaction structs
+ */
+ struct sigaction ctrlc_handle;
+ struct sigaction ignore_handle;
+ struct sigaction hup_handle;
+
i_conn = content_length = 0;
net_buffer_size = 100000;
net_buffer = xmalloc(net_buffer_size);
***************
*** 27708,27718 ****
close(fd);
}
! /* install signal handler */
! signal(SIGTERM, ctrlc_handler);
! signal(SIGINT, ctrlc_handler);
! signal(SIGPIPE, SIG_IGN);
! signal(SIGHUP, hup_handler);
/* give up root privilege */
if (geteuid() == 0) {
if (!getcfg("global", "Grp", str, sizeof(str)) || setegroup(str) < 0) {
--- 27715,27739 ----
close(fd);
}
! /*
! * install signal handlers
! */
! ctrlc_handle.sa_handler = ctrlc_handler;
! sigemptyset( &ctrlc_handle.sa_mask );
! ctrlc_handle.sa_flags = 0;
!
! sigaction(SIGTERM, &ctrlc_handle, NULL);
! sigaction(SIGINT, &ctrlc_handle, NULL);
!
! ignore_handle.sa_handler = SIG_IGN;
! sigaction(SIGPIPE, &ignore_handle, NULL);
!
! hup_handle.sa_handler = hup_handler;
! sigemptyset( &hup_handle.sa_mask );
! hup_handle.sa_flags = 0;
! sigaction(SIGHUP, &hup_handle, NULL);
!
!
/* give up root privilege */
if (geteuid() == 0) {
if (!getcfg("global", "Grp", str, sizeof(str)) || setegroup(str) < 0) {
|
1916
|
Mon Aug 28 15:44:38 2006 |
| kcmin | kcmin@mchsi.com | Question | Windows | 2.6.2 | Entry Submission Help | I actually have two questions.
1. When an entry is submitted is it possible to have it return to the submit page instead of a summary of the entry. In the ELog.cfg syntax on the site it mentions something about this. However It says something about a file being present in the resource directory. I am not sure what to do here.
2. When you submit an entry is it possible for the fields to stay set to the value that was selected on submission of the last entry. You would need to still be able to change them though. |
69494
|
Sun Mar 13 21:20:56 2022 |
| James Darrow | kb9mmc@ameritech.net | Question | Linux | 3.1.3-7933898 | Removal of ID and Date attributes | Hello all,
I just found elog which is a great piece of software! I'm implementing it for use to log my shortwave listening contacts. The problem that I have is I'm moving over a current log to elog which already has a date of when the record was created, which is important.I renamed the old date to day to upload the log into elog. My problem is I don't need to see elog's ID# or date/time stamp of when the log was created seeing it's already in my data. My question is, is there any way to not show elog's ID# and date/time stamp or would I need to create a tab and if so could someone provide a config file where I could see how the tab was implemented. I've attached a screenshot of what it looks like so far. I've implemented the dark theme (which I like) that Anthoney had posted in the contibutions section.
Thanks in advance!
Jim |
Attachment 1: Screenshot_from_2022-03-13_15-31-40.png
|
|
69496
|
Mon Mar 14 18:45:14 2022 |
| James Darrow | kb9mmc@ameritech.net | Question | Linux | 3.1.3-7933898 | Re: Removal of ID and Date attributes | That worked! Thanks Stefan
Stefan Ritt wrote: |
Use the configuration option
List display = Day, Station Type, Start time UTC, ...
as written in the documentation.
Best,
Stefan
James Darrow wrote: |
Hello all,
I just found elog which is a great piece of software! I'm implementing it for use to log my shortwave listening contacts. The problem that I have is I'm moving over a current log to elog which already has a date of when the record was created, which is important.I renamed the old date to day to upload the log into elog. My problem is I don't need to see elog's ID# or date/time stamp of when the log was created seeing it's already in my data. My question is, is there any way to not show elog's ID# and date/time stamp or would I need to create a tab and if so could someone provide a config file where I could see how the tab was implemented. I've attached a screenshot of what it looks like so far. I've implemented the dark theme (which I like) that Anthoney had posted in the contibutions section.
Thanks in advance!
Jim
|
|
|
67674
|
Mon Mar 10 12:15:07 2014 |
| Kay Graf | kay.graf@fau.de | Question | Linux | 2.9.2-2455 | Author drop-down menu length | I am handling several ELOGs for medium-sized collaborations (scientific experiments) with a large number of authors (~250) and chose to have single-user access and entries for every author - in the config file, the "Options Author"-List contains ~150 name for now.
However, the Author drop-down menu stops after ~100 names - is that a ELOG-webserver hard limit? I checked there is nothing strange in the author names following (no strange character, etc.).
I tested it on Firefox, Chrome, Safari - it does not seem to be a browser issue.
Any help would be highly appreciated. |
67676
|
Tue Mar 11 09:19:06 2014 |
| Kay Graf | kay.graf@fau.de | Question | Linux | 2.9.2-2455 | Re: Author drop-down menu length |
Andreas Luedeke wrote: |
Hello Kay,
I had to look it up in the source code: yes, you are right, it is hard-coded in elogd.h
⇄
English (auto-detected) » English
elogd.h:#define MAX_N_LIST 100
You can of course change the limit and recompile.
As an alternative, you could have sub-menus with less than 100 entries (disclaimer: the following is untested example):
Attributes = author_range, author, ...
options author_range = A-K{1}, L-Z{2}
{1} options author = Andi, Bob, Camilla, Dennis, ..., Kay
{2} options author = Lily, Max, Norbert, Oscar, ..., Zeta
Cheers
Andreas
|
Hello Andreas,
thanks a lot for your quick reply - both options are valid and working. For simplicity (the author list is generated automatically from a shell script) I opted for the first one.
Best regards,
Kay
|
68747
|
Tue Feb 27 15:11:23 2018 |
| KaterKarlo99 | katerkarlo99@gmail.com | Bug report | Linux | Windows | 3.1.3.1 | User passwords not configurable with loacl passwordfile | Hi!
Tryed windows an linux version. On booth the "Register new User" dialog is not displaying a password line.
so what password is used for the new user? Further the user can't change his password, because he didn't know the old one.
And if an admin user trys to change the password of an other user, a error is displyed that the old password of the admin user is
wrong and nothing happens with the password of the non-admin user.
elog console (admin user awrzkrz changes the password of testuser1):
GET /demo/?cmd=Config&config=TestUser1&cfgpage=1&admin=1&cfg_user=TestUser1&active=1&new_user_name=TestUser1&new_full_name=TEST+User&new_user_email=test%40heaven.org&cmd=Change+password HTTP/1.1
Returned 1032 bytes
GET /demo/?config=TestUser1&newpwd=test1234&newpwd2=test1234 HTTP/1.1
Returned 20 bytes
GET /demo/?cmd=Change%20password&config=awrzkrz&fail=1 HTTP/1.1
Returned 1215 bytes
Thanks for help!
|
68749
|
Wed Feb 28 11:38:23 2018 |
| KaterKarlo98 | katerkarlo99@gmail.com | Bug report | Linux | Windows | 3.1.3.1 | Re: User passwords not configurable with loacl passwordfile | Hi Stefan,
thanks for the quick reply.
Yes, i've configured user-level access. Here is my cfg:
[global]
port = 9191
Usr = abc
Grp = abc
SMTP host = mail.xy.at
Protect Selection page = 1
Password file = elog_pw.xml
Logfile = elog_log.txt
Logging level = 2
Admin user = User1, Admin
Self register = 2
Restrict edit = 1
Allow password change = 1
[demo]
Theme = default
Authentication = Kerberos
Comment = General Linux Tips & Tricks
Attributes = Author, Type, Category, Subject
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Oth er
Options Category = General, Hardware, Software, Network, Other
Extendable Options = Category
Required Attributes = Author, Type
Page Title = ELOG - $subject
Reverse sort = 1
Quick filter = Date, Type
And, yes, the password file is r7w accessible for the elogd:
[root@localhost logbooks]# cat elog_pw.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- created by MXML on Tue Feb 27 14:54:52 2018 -->
<list>
<user>
<name>Admin</name>
<password encoding="SHA256">3c2QQ0KjIU1OLtB29cl8Fplc2WN7X89bnoEjaR7tWu.</password>
<full_name>Admin</full_name>
<last_logout>0</last_logout>
<last_activity>0</last_activity>
<email>admin@hell.org</email>
<inactive>0</inactive>
<email_notify/>
</user>
<user>
<name>TestUser1</name>
<password encoding="SHA256">3c2QQ0KjIU1OLtB29cl8Fplc2WN7X89bnoEjaR7tWu.</password>
<full_name>User1</full_name>
<last_logout>0</last_logout>
<last_activity>0</last_activity>
<email>test@heaven.org</email>
<inactive>0</inactive>
<email_notify/>
</user>
</list>
br, Rainer
Stefan Ritt wrote: |
Have you configures user-level access via
password file = anyfile.pwd
Can your elogd server write to that file?
If yes, can you please post your config file?
Stefan
KaterKarlo99 wrote: |
Hi!
Tryed windows an linux version. On booth the "Register new User" dialog is not displaying a password line.
so what password is used for the new user? Further the user can't change his password, because he didn't know the old one.
And if an admin user trys to change the password of an other user, a error is displyed that the old password of the admin user is
wrong and nothing happens with the password of the non-admin user.
elog console (admin user awrzkrz changes the password of testuser1):
GET /demo/?cmd=Config&config=TestUser1&cfgpage=1&admin=1&cfg_user=TestUser1&active=1&new_user_name=TestUser1&new_full_name=TEST+User&new_user_email=test%40heaven.org&cmd=Change+password HTTP/1.1
Returned 1032 bytes
GET /demo/?config=TestUser1&newpwd=test1234&newpwd2=test1234 HTTP/1.1
Returned 20 bytes
GET /demo/?cmd=Change%20password&config=awrzkrz&fail=1 HTTP/1.1
Returned 1215 bytes
Thanks for help!
|
|
|
|