> From: Reindl Harald > > just restart the samba server instead only reload?But how do you do that in C? Frankly, I don't even know how to do that from the command line. This is an embedded system without a lot of high-level utilities like you get on Ubuntu. -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com
Am 23.02.2016 um 01:05 schrieb Paul D. DeRocco:>> From: Reindl Harald >> >> just restart the samba server instead only reload? > > But how do you do that in C?besides that you did not provide the info "embedded system" - when you have systemd you also have "systemctl restart whatever.service" and in PHP it would be passthru('command')> Frankly, I don't even know how to do that from the command line. This is > an embedded system without a lot of high-level utilities like you get on > Ubuntuyou don't know how you restart a service via CLI - seriously? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20160223/a23a426e/signature.sig>
> From: Reindl Harald > > besides that you did not provide the info "embedded system" - > when you > have systemd you also have "systemctl restart > whatever.service" and in > PHP it would be passthru('command') > > you don't know how you restart a service via CLI - seriously?I know how to do it through systemctl, but I was wondering if there was a way to do it directly, say through a different signal to smbd. Killing smbd doesn't work--it doesn't get restarted. I'd like to find a lightweight way to do it programmatically from within my own service (written in C), without resorting to fork/exec* to call systemctl. -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com