Thread: [Cppcms-users] E-Mails Missing
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2015-12-25 18:10:59
|
Hello, I'm Artyom Beilis the project maintainer and I'm sending this mail from my different e-mail account - on GMail (my primary account is on Yahoo) I have strong suspicions that some of my e-mails go directly to spam folder. Can you please check if some of these e-mails were not received: CppCMS 1.1 Progress report : https://sourceforge.net/p/cppcms/mailman/message/34718381/ Liggin (logging - my reply) https://sourceforge.net/p/cppcms/mailman/message/34668147/ Session Sharing with Non-CppCMS technologies: https://sourceforge.net/p/cppcms/mailman/message/34623273/ CppCMS interoperability with other web frameworks - which ones? https://sourceforge.net/p/cppcms/mailman/message/34622438/ I noticed that some does not receive my response or see it as quite of some other users posting to the list. Can you please check if you got the original e-mails to the list. Thank You, Artyom Beilis |
From: redred77 <red...@gm...> - 2015-12-26 00:32:19
|
I received "CppCMS 1.1 Progress report". Well it was found from spam folder. Other mails you mentioned are not found even in spam folder. Gmail's spam folder is deleted automatically in certain period but I don't think that caused the problem since your mails are not old enough. I see your message from other people's reply mail but not from your original message time to time. As you can see, I'm using gmail. Thanks. Hello, I'm Artyom Beilis the project maintainer and I'm sending this mail from my different e-mail account - on GMail (my primary account is on Yahoo) I have strong suspicions that some of my e-mails go directly to spam folder. Can you please check if some of these e-mails were not received: CppCMS 1.1 Progress report : https://sourceforge.net/p/cppcms/mailman/message/34718381/ Liggin (logging - my reply) https://sourceforge.net/p/cppcms/mailman/message/34668147/ Session Sharing with Non-CppCMS technologies: https://sourceforge.net/p/cppcms/mailman/message/34623273/ CppCMS interoperability with other web frameworks - which ones? https://sourceforge.net/p/cppcms/mailman/message/34622438/ I noticed that some does not receive my response or see it as quite of some other users posting to the list. Can you please check if you got the original e-mails to the list. Thank You, Artyom Beilis ------------------------------------------------------------------------------ _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Marius C. <mf...@gm...> - 2015-12-26 00:44:29
|
CppCMS 1.1 Progress report (scoop 1st beta is coming...) and the rest of them were all in the spam folder as many of your emails from your yahoo account sent to my gmail. I had to create a special filter to send them to my inbox ( see how much I value your emails, lol ). It kept complaining that your emails seem to not come from yahoo servers themselves or something like that. Since I created the filters it just says that it didn't send them to spam because I asked it not to. On Sat, Dec 26, 2015 at 2:32 AM, redred77 <red...@gm...> wrote: > I received "CppCMS 1.1 Progress report". Well it was found from spam > folder. > > Other mails you mentioned are not found even in spam folder. Gmail's spam > folder is deleted automatically in certain period but I don't think that > caused the problem since your mails are not old enough. > > I see your message from other people's reply mail but not from your original > message time to time. > > As you can see, I'm using gmail. > > Thanks. > > Hello, > > I'm Artyom Beilis the project maintainer and I'm sending this mail from my > different e-mail account - on GMail (my primary account is on Yahoo) > > I have strong suspicions that some of my e-mails go directly to spam folder. > > Can you please check if some of these e-mails were not received: > > CppCMS 1.1 Progress report : > https://sourceforge.net/p/cppcms/mailman/message/34718381/ > Liggin (logging - my reply) > https://sourceforge.net/p/cppcms/mailman/message/34668147/ > Session Sharing with Non-CppCMS technologies: > https://sourceforge.net/p/cppcms/mailman/message/34623273/ > CppCMS interoperability with other web frameworks - which ones? > https://sourceforge.net/p/cppcms/mailman/message/34622438/ > > I noticed that some does not receive my response or see it as quite of some > other users posting to the list. > > Can you please check if you got the original e-mails to the list. > > Thank You, > > Artyom Beilis > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Paolo B. <pao...@gm...> - 2015-12-26 04:53:20
|
Same here, we actually told you weeks ago... gmail checks the address, see that is from yahoo but it fails some kind of checking so it assumes it is spam. On Sat, Dec 26, 2015 at 9:44 AM, Marius Cirsta <mf...@gm...> wrote: > CppCMS 1.1 Progress report (scoop 1st beta is coming...) and the rest > of them were all in the spam folder as many of your emails from your > yahoo account sent to my gmail. I had to create a special filter to > send them to my inbox ( see how much I value your emails, lol ). It > kept complaining that your emails seem to not come from yahoo servers > themselves or something like that. > > Since I created the filters it just says that it didn't send them to > spam because I asked it not to. > > On Sat, Dec 26, 2015 at 2:32 AM, redred77 <red...@gm...> wrote: >> I received "CppCMS 1.1 Progress report". Well it was found from spam >> folder. >> >> Other mails you mentioned are not found even in spam folder. Gmail's spam >> folder is deleted automatically in certain period but I don't think that >> caused the problem since your mails are not old enough. >> >> I see your message from other people's reply mail but not from your original >> message time to time. >> >> As you can see, I'm using gmail. >> >> Thanks. >> >> Hello, >> >> I'm Artyom Beilis the project maintainer and I'm sending this mail from my >> different e-mail account - on GMail (my primary account is on Yahoo) >> >> I have strong suspicions that some of my e-mails go directly to spam folder. >> >> Can you please check if some of these e-mails were not received: >> >> CppCMS 1.1 Progress report : >> https://sourceforge.net/p/cppcms/mailman/message/34718381/ >> Liggin (logging - my reply) >> https://sourceforge.net/p/cppcms/mailman/message/34668147/ >> Session Sharing with Non-CppCMS technologies: >> https://sourceforge.net/p/cppcms/mailman/message/34623273/ >> CppCMS interoperability with other web frameworks - which ones? >> https://sourceforge.net/p/cppcms/mailman/message/34622438/ >> >> I noticed that some does not receive my response or see it as quite of some >> other users posting to the list. >> >> Can you please check if you got the original e-mails to the list. >> >> Thank You, >> >> Artyom Beilis >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > ------------------------------------------------------------------------------ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom B. <art...@gm...> - 2015-12-26 11:16:09
|
On Sat, Dec 26, 2015 at 6:53 AM, Paolo Bolzoni <pao...@gm...> wrote: > > Same here, we actually told you weeks ago... > gmail checks the address, see that is from yahoo but it fails some > kind of checking so it assumes it is spam. > Thanks, I probably missed (or accidentially dismissed) this one Artyom |
From: Hery M. <hma...@gm...> - 2015-12-26 11:40:01
|
Hy Artyom, After check I never received them, thank a lot to tell us for checking. I was never aware that the reception of your email to the existence of all this information from you. Thank you. HERINIAINA Maminirina. 2015-12-25 19:10 GMT+01:00 Artyom Beilis <art...@gm...>: > Hello, > > I'm Artyom Beilis the project maintainer and I'm sending this mail from my > different e-mail account - on GMail (my primary account is on Yahoo) > > I have strong suspicions that some of my e-mails go directly to spam > folder. > > Can you please check if some of these e-mails were not received: > > CppCMS 1.1 Progress report : > https://sourceforge.net/p/cppcms/mailman/message/34718381/ > Liggin (logging - my reply) > https://sourceforge.net/p/cppcms/mailman/message/34668147/ > Session Sharing with Non-CppCMS technologies: > https://sourceforge.net/p/cppcms/mailman/message/34623273/ > CppCMS interoperability with other web frameworks - which ones? > https://sourceforge.net/p/cppcms/mailman/message/34622438/ > > I noticed that some does not receive my response or see it as quite of > some other users posting to the list. > > Can you please check if you got the original e-mails to the list. > > Thank You, > > Artyom Beilis > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Василий Т. <par...@gm...> - 2015-12-26 12:54:20
|
step by step: 1) use daemon config with fork, setuid and pid file On second start the daemon replaces its old pid file, finds the socket being busy and exits. Thus we got healthy daemon and incorrect pid file. 2) put pid file handling inside init script: PID=`$DAEMON $DAEMONOPT... ans so on The daemon unable to setuid by itself. Direct call without ` lets the daemon setuid successfully, but i can't handle pid file again. 3) simplest systemd config resolves all the problems, the daemon starts as regular application. Unfortunately, everything is at work - i can't get configs right now (very typical ones). 2015-12-26 14:12 GMT+03:00 Artyom Beilis <art...@gm...>: > First of all CppCMS can setuid for you: > > http://cppcms.com/wikipp/en/page/cppcms_1x_config#daemon > > You can provide both user and group and the process would setuid from root > to limited account while being capable > of listening on ports like 80. > > Now if you start the process like this PID=`$DAEMON $DAEMONOPT and saving > PID file to lock file it would indeed not work. > > CppCMS service creates its own lock file and daemonizes itself. Service > PID is stored in the lock file and its content > should be used to stop to process and check if it is up. > > Can you show your full systemd configuration and your CppCMS config. > > Artyom > > P.S.: If you don't mind send a reply to CppCMS users list so others can > learn and probably help. > > On Sat, Dec 26, 2015 at 12:47 PM, Василий Теркин <par...@gm...> > wrote: > >> >> 2015-12-26 0:34 GMT+03:00 Artyom Beilis <art...@gm...>: >> >>> >>> >>> On Fri, Dec 25, 2015 at 11:19 PM, Василий Теркин <par...@gm...> >>> wrote: >>> >>>> Hello, Artyom. That's right - no questions, no answers. >>>> >>> >>> Can you find them in Spam or they just gone? The one regarding CppCMS >>> 1.1 progress is just from few days ago. >>> >> >> oh, sh%t.. i'am very sorry - that's my fault >> I have two merged gmail accouts: google downloads everything from >> par...@gm... and let me write emails on behalf of both. >> But the issue is spam - it never gets into "parent" account, and that's >> why i hadn't found it. >> I apologize. >> >> >>> * one more thing.. cppcms has an daemon option with pid file, but it >>>> doesn't use it itself. If the daemon starts second time it replaces the old >>>> pid file, finds the socket being busy and exits. Thus we got healthy daemon >>>> and incorrect pid file. Thanks to systemd - all of these daemon options may >>>> not be used or customized by myself. >>>> >>> >>> Actually it shouldn't be like that the lock file is not overwritten when >>> it exists . You get socket in use (as it in use) but PID file >>> should remain unmodified. >>> >>> Are you sure it works the way you described? It shouldn't. Can it be the >>> case you "remove" lock file before process starts >>> as "cleanup"? >>> >> >> It works exactly this way for me. This is the only reason i got to know >> systemd (and i found it to be very convenient). >> Plus, when daemon start command is nested into sh command (typical: PID=`$DAEMON >> $DAEMONOPTS > /dev/null 2>&1 & echo $!`) >> the daemon is unable to setuid. Thus, resolving one problem creates >> another one. >> >> Thanks again for feedback. >> >> Andrey >> > > |
From: Paolo B. <pao...@gm...> - 2015-12-26 12:55:55
|
I found the old email, I copy it back as it contained the exact error message: 8< ------------------ From: Paolo Bolzoni <pao...@gm...> Date: Thu, Mar 19, 2015 at 2:34 AM Subject: Re: [Cppcms-users] Current Develoment To: Artyom Beilis <art...@ya...>, cpp...@li... Beilis, most of your messages go in the gmail spam folder with the error: "It has a from address in yahoo.com but has failed yahoo.com's required tests for authentication." Perhaps is a problem in your side? ------------------ >8 On Sat, Dec 26, 2015 at 8:39 PM, Hery Maminirina <hma...@gm...> wrote: > Hy Artyom, > > After check I never received them, thank a lot to tell us for checking. I > was never aware that the reception of your email to the existence of all > this information from you. > > Thank you. > > HERINIAINA Maminirina. > > > > > 2015-12-25 19:10 GMT+01:00 Artyom Beilis <art...@gm...>: >> >> Hello, >> >> I'm Artyom Beilis the project maintainer and I'm sending this mail from my >> different e-mail account - on GMail (my primary account is on Yahoo) >> >> I have strong suspicions that some of my e-mails go directly to spam >> folder. >> >> Can you please check if some of these e-mails were not received: >> >> CppCMS 1.1 Progress report : >> https://sourceforge.net/p/cppcms/mailman/message/34718381/ >> Liggin (logging - my reply) >> https://sourceforge.net/p/cppcms/mailman/message/34668147/ >> Session Sharing with Non-CppCMS technologies: >> https://sourceforge.net/p/cppcms/mailman/message/34623273/ >> CppCMS interoperability with other web frameworks - which ones? >> https://sourceforge.net/p/cppcms/mailman/message/34622438/ >> >> I noticed that some does not receive my response or see it as quite of >> some other users posting to the list. >> >> Can you please check if you got the original e-mails to the list. >> >> Thank You, >> >> Artyom Beilis >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@gm...> - 2015-12-26 15:35:35
|
Thank you a lot it allowed me to pinpoint the issue: In short Yahoo does not recognize mails forwarded by mailman [1]. Something called DMARC Mailman starting from 2.1.16 should support it. Unfortunately Sourceforge's mailman version is 2.1.9 - basically this means GMail is going to scrap mails sent by Yahoo via the list. So until this stuff is going to be fixed I'll access this mailing list via GMail. Artyom [1] http://yahoomail.tumblr.com/post/82426900353/yahoo-dmarc-policy-change-what-should-senders On Sat, Dec 26, 2015 at 2:55 PM, Paolo Bolzoni <pao...@gm...> wrote: > > Beilis, most of your messages go in the gmail spam folder with the error: > > "It has a from address in yahoo.com but has failed yahoo.com's > required tests for authentication." > > Perhaps is a problem in your side? |
From: Artyom B. <art...@gm...> - 2015-12-26 13:03:34
|
I meant all the code, config files including systemd configuration and sample app. If you can reproduce it on 'hello world' example. Because I have just tested it and it works as expected On Saturday, December 26, 2015, Василий Теркин <par...@gm...> wrote: > step by step: > 1) use daemon config with fork, setuid and pid file > On second start the daemon replaces its old pid file, finds the socket being busy and exits. Thus we got healthy daemon and incorrect pid file. > 2) put pid file handling inside init script: > PID=`$DAEMON $DAEMONOPT... ans so on > The daemon unable to setuid by itself. > Direct call without ` lets the daemon setuid successfully, but i can't handle pid file again. > 3) simplest systemd config resolves all the problems, the daemon starts as regular application. > Unfortunately, everything is at work - i can't get configs right now (very typical ones). > 2015-12-26 14:12 GMT+03:00 Artyom Beilis <art...@gm...>: >> >> First of all CppCMS can setuid for you: >> http://cppcms.com/wikipp/en/page/cppcms_1x_config#daemon >> >> You can provide both user and group and the process would setuid from root to limited account while being capable >> of listening on ports like 80. >> Now if you start the process like this PID=`$DAEMON $DAEMONOPT and saving PID file to lock file it would indeed not work. >> CppCMS service creates its own lock file and daemonizes itself. Service PID is stored in the lock file and its content >> should be used to stop to process and check if it is up. >> Can you show your full systemd configuration and your CppCMS config. >> Artyom >> P.S.: If you don't mind send a reply to CppCMS users list so others can learn and probably help. >> On Sat, Dec 26, 2015 at 12:47 PM, Василий Теркин <par...@gm...> wrote: >>> >>> 2015-12-26 0:34 GMT+03:00 Artyom Beilis <art...@gm...>: >>>> >>>> >>>> On Fri, Dec 25, 2015 at 11:19 PM, Василий Теркин <par...@gm...> wrote: >>>>> >>>>> Hello, Artyom. That's right - no questions, no answers. >>>> >>>> >>>> Can you find them in Spam or they just gone? The one regarding CppCMS 1.1 progress is just from few days ago. >>> >>> oh, sh%t.. i'am very sorry - that's my fault >>> I have two merged gmail accouts: google downloads everything from par...@gm... and let me write emails on behalf of both. >>> But the issue is spam - it never gets into "parent" account, and that's why i hadn't found it. >>> I apologize. >>> >>>>> >>>>> * one more thing.. cppcms has an daemon option with pid file, but it doesn't use it itself. If the daemon starts second time it replaces the old pid file, finds the socket being busy and exits. Thus we got healthy daemon and incorrect pid file. Thanks to systemd - all of these daemon options may not be used or customized by myself. >>>> >>>> Actually it shouldn't be like that the lock file is not overwritten when it exists . You get socket in use (as it in use) but PID file >>>> should remain unmodified. >>>> Are you sure it works the way you described? It shouldn't. Can it be the case you "remove" lock file before process starts >>>> as "cleanup"? >>> >>> It works exactly this way for me. This is the only reason i got to know systemd (and i found it to be very convenient). >>> Plus, when daemon start command is nested into sh command (typical: PID=`$DAEMON $DAEMONOPTS > /dev/null 2>&1 & echo $!`) >>> the daemon is unable to setuid. Thus, resolving one problem creates another one. >>> Thanks again for feedback. >>> Andrey > > |
From: Hery M. <hma...@gm...> - 2015-12-26 12:14:15
Attachments:
spam_mail.PNG
|
Confirmed, all your mails are redirected to the gmail spam directory. Thanks a lot for the informations. HERINIAINA Maminirina. 2015-12-25 19:10 GMT+01:00 Artyom Beilis <art...@gm...>: > Hello, > > I'm Artyom Beilis the project maintainer and I'm sending this mail from my > different e-mail account - on GMail (my primary account is on Yahoo) > > I have strong suspicions that some of my e-mails go directly to spam > folder. > > Can you please check if some of these e-mails were not received: > > CppCMS 1.1 Progress report : > https://sourceforge.net/p/cppcms/mailman/message/34718381/ > Liggin (logging - my reply) > https://sourceforge.net/p/cppcms/mailman/message/34668147/ > Session Sharing with Non-CppCMS technologies: > https://sourceforge.net/p/cppcms/mailman/message/34623273/ > CppCMS interoperability with other web frameworks - which ones? > https://sourceforge.net/p/cppcms/mailman/message/34622438/ > > I noticed that some does not receive my response or see it as quite of > some other users posting to the list. > > Can you please check if you got the original e-mails to the list. > > Thank You, > > Artyom Beilis > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Василий Т. <par...@gm...> - 2015-12-28 11:44:02
|
Helo, Artyom. Unfortunately (or, better, fortunately), I can't reproduce my previous troubles with pid file overwriting. May be, that was my mistake, and the pid file was replaced by init script while created by the daemon. Anyway, pid file creation after setuid is not convinient for me. I would stay with systemd if you dont mind :) Current systemd config ("daemon" section is absent in cppcms config): ------------------ [Unit] Description=Lightning app server After=network.target [Service] ExecStart=/opt/lightning/lightning Type=simple ExecReload=/bin/kill -HUP $MAINPID ExecStop=/bin/kill $MAINPID Restart=on-abnormal User=www-data [Install] WantedBy=multi-user.target ------------------ Thanks for support! Andrey 2015-12-26 16:03 GMT+03:00 Artyom Beilis <art...@gm...>: > I meant all the code, config files including systemd configuration and > sample app. If you can reproduce it on 'hello world' example. > > Because I have just tested it and it works as expected > > On Saturday, December 26, 2015, Василий Теркин <par...@gm...> > wrote: > > step by step: > > 1) use daemon config with fork, setuid and pid file > > On second start the daemon replaces its old pid file, finds the socket > being busy and exits. Thus we got healthy daemon and incorrect pid file. > > 2) put pid file handling inside init script: > > PID=`$DAEMON $DAEMONOPT... ans so on > > The daemon unable to setuid by itself. > > Direct call without ` lets the daemon setuid successfully, but i can't > handle pid file again. > > 3) simplest systemd config resolves all the problems, the daemon starts > as regular application. > > Unfortunately, everything is at work - i can't get configs right now > (very typical ones). > > 2015-12-26 14:12 GMT+03:00 Artyom Beilis <art...@gm...>: > >> > >> First of all CppCMS can setuid for you: > >> http://cppcms.com/wikipp/en/page/cppcms_1x_config#daemon > >> > >> You can provide both user and group and the process would setuid from > root to limited account while being capable > >> of listening on ports like 80. > >> Now if you start the process like this PID=`$DAEMON $DAEMONOPT and > saving PID file to lock file it would indeed not work. > >> CppCMS service creates its own lock file and daemonizes itself. Service > PID is stored in the lock file and its content > >> should be used to stop to process and check if it is up. > >> Can you show your full systemd configuration and your CppCMS config. > >> Artyom > >> P.S.: If you don't mind send a reply to CppCMS users list so others can > learn and probably help. > >> On Sat, Dec 26, 2015 at 12:47 PM, Василий Теркин <par...@gm...> > wrote: > >>> > >>> 2015-12-26 0:34 GMT+03:00 Artyom Beilis <art...@gm...>: > >>>> > >>>> > >>>> On Fri, Dec 25, 2015 at 11:19 PM, Василий Теркин < > par...@gm...> wrote: > >>>>> > >>>>> Hello, Artyom. That's right - no questions, no answers. > >>>> > >>>> > >>>> Can you find them in Spam or they just gone? The one regarding CppCMS > 1.1 progress is just from few days ago. > >>> > >>> oh, sh%t.. i'am very sorry - that's my fault > >>> I have two merged gmail accouts: google downloads everything from > par...@gm... and let me write emails on behalf of both. > >>> But the issue is spam - it never gets into "parent" account, and > that's why i hadn't found it. > >>> I apologize. > >>> > >>>>> > >>>>> * one more thing.. cppcms has an daemon option with pid file, but it > doesn't use it itself. If the daemon starts second time it replaces the old > pid file, finds the socket being busy and exits. Thus we got healthy daemon > and incorrect pid file. Thanks to systemd - all of these daemon options may > not be used or customized by myself. > >>>> > >>>> Actually it shouldn't be like that the lock file is not overwritten > when it exists . You get socket in use (as it in use) but PID file > >>>> should remain unmodified. > >>>> Are you sure it works the way you described? It shouldn't. Can it be > the case you "remove" lock file before process starts > >>>> as "cleanup"? > >>> > >>> It works exactly this way for me. This is the only reason i got to > know systemd (and i found it to be very convenient). > >>> Plus, when daemon start command is nested into sh command (typical: > PID=`$DAEMON $DAEMONOPTS > /dev/null 2>&1 & echo $!`) > >>> the daemon is unable to setuid. Thus, resolving one problem creates > another one. > >>> Thanks again for feedback. > >>> Andrey > > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Klaim - J. L. <mj...@gm...> - 2015-12-28 19:26:29
|
For information: Last email I sent to you Artyom was about your emails (from yahoo) being flagged as spam in my gmail. It was in April 2014 so it started before that (the year before I think). You should be able to find that email again if you didn't delete it, I still have it. Joël Lamotte On 28 December 2015 at 12:43, Василий Теркин <par...@gm...> wrote: > Helo, Artyom. > Unfortunately (or, better, fortunately), I can't reproduce my previous > troubles with pid file overwriting. > May be, that was my mistake, and the pid file was replaced by init script > while created by the daemon. > Anyway, pid file creation after setuid is not convinient for me. I would > stay with systemd if you dont mind :) > Current systemd config ("daemon" section is absent in cppcms config): > ------------------ > [Unit] > Description=Lightning app server > After=network.target > > [Service] > ExecStart=/opt/lightning/lightning > Type=simple > ExecReload=/bin/kill -HUP $MAINPID > ExecStop=/bin/kill $MAINPID > Restart=on-abnormal > User=www-data > > [Install] > WantedBy=multi-user.target > ------------------ > Thanks for support! > Andrey > > 2015-12-26 16:03 GMT+03:00 Artyom Beilis <art...@gm...>: > >> I meant all the code, config files including systemd configuration and >> sample app. If you can reproduce it on 'hello world' example. >> >> Because I have just tested it and it works as expected >> >> On Saturday, December 26, 2015, Василий Теркин <par...@gm...> >> wrote: >> > step by step: >> > 1) use daemon config with fork, setuid and pid file >> > On second start the daemon replaces its old pid file, finds the socket >> being busy and exits. Thus we got healthy daemon and incorrect pid file. >> > 2) put pid file handling inside init script: >> > PID=`$DAEMON $DAEMONOPT... ans so on >> > The daemon unable to setuid by itself. >> > Direct call without ` lets the daemon setuid successfully, but i can't >> handle pid file again. >> > 3) simplest systemd config resolves all the problems, the daemon starts >> as regular application. >> > Unfortunately, everything is at work - i can't get configs right now >> (very typical ones). >> > 2015-12-26 14:12 GMT+03:00 Artyom Beilis <art...@gm...>: >> >> >> >> First of all CppCMS can setuid for you: >> >> http://cppcms.com/wikipp/en/page/cppcms_1x_config#daemon >> >> >> >> You can provide both user and group and the process would setuid from >> root to limited account while being capable >> >> of listening on ports like 80. >> >> Now if you start the process like this PID=`$DAEMON $DAEMONOPT and >> saving PID file to lock file it would indeed not work. >> >> CppCMS service creates its own lock file and daemonizes itself. >> Service PID is stored in the lock file and its content >> >> should be used to stop to process and check if it is up. >> >> Can you show your full systemd configuration and your CppCMS config. >> >> Artyom >> >> P.S.: If you don't mind send a reply to CppCMS users list so others >> can learn and probably help. >> >> On Sat, Dec 26, 2015 at 12:47 PM, Василий Теркин < >> par...@gm...> wrote: >> >>> >> >>> 2015-12-26 0:34 GMT+03:00 Artyom Beilis <art...@gm...>: >> >>>> >> >>>> >> >>>> On Fri, Dec 25, 2015 at 11:19 PM, Василий Теркин < >> par...@gm...> wrote: >> >>>>> >> >>>>> Hello, Artyom. That's right - no questions, no answers. >> >>>> >> >>>> >> >>>> Can you find them in Spam or they just gone? The one regarding >> CppCMS 1.1 progress is just from few days ago. >> >>> >> >>> oh, sh%t.. i'am very sorry - that's my fault >> >>> I have two merged gmail accouts: google downloads everything from >> par...@gm... and let me write emails on behalf of both. >> >>> But the issue is spam - it never gets into "parent" account, and >> that's why i hadn't found it. >> >>> I apologize. >> >>> >> >>>>> >> >>>>> * one more thing.. cppcms has an daemon option with pid file, but >> it doesn't use it itself. If the daemon starts second time it replaces the >> old pid file, finds the socket being busy and exits. Thus we got healthy >> daemon and incorrect pid file. Thanks to systemd - all of these daemon >> options may not be used or customized by myself. >> >>>> >> >>>> Actually it shouldn't be like that the lock file is not overwritten >> when it exists . You get socket in use (as it in use) but PID file >> >>>> should remain unmodified. >> >>>> Are you sure it works the way you described? It shouldn't. Can it be >> the case you "remove" lock file before process starts >> >>>> as "cleanup"? >> >>> >> >>> It works exactly this way for me. This is the only reason i got to >> know systemd (and i found it to be very convenient). >> >>> Plus, when daemon start command is nested into sh command (typical: >> PID=`$DAEMON $DAEMONOPTS > /dev/null 2>&1 & echo $!`) >> >>> the daemon is unable to setuid. Thus, resolving one problem creates >> another one. >> >>> Thanks again for feedback. >> >>> Andrey >> > >> > >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |