Re: [systemd-devel] Syntax check for a new service?

2022-03-01 Thread Tom Browder
On Tue, Mar 1, 2022 at 08:06 Mantas Mikulėnas wrote: ... > That actually makes it relatively privileged – it has full access to > *your* files and processes... So unless accessing your data is the > service's explicit purpose (e.g. > ... The app serves html from its base (working) directory and

Re: [systemd-devel] Syntax check for a new service?

2022-03-01 Thread Tom Browder
On Sat, Feb 26, 2022 at 12:06 Mantas Mikulėnas wrote: ... > Use the Environment= option to set environment variables. > Thanks, Mantas. That works great. One more question: I'm thinking of making the service have myself as the user (non-privileged). Is that a bad practice since I'm also the roo

Re: [systemd-devel] Syntax check for a new service?

2022-02-26 Thread Tom Browder
On Sat, Feb 26, 2022 at 09:38 Dave Howorth wrote: > On Sat, 26 Feb 2022 09:17:38 -0600 > Tom Browder wrote: > > Is there any way to get a plain syntax check of a potential new > > service file? > > systemd-analyze verify FILE... Thanks, Dave. I'm appare

[systemd-devel] Syntax check for a new service?

2022-02-26 Thread Tom Browder
Is there any way to get a plain syntax check of a potential new service file? I currently check it by installing, reloading, and enabling, and then getting a status check where I see the service isn't running and I see multiple messages: [in black text]*:N: Missing '=' [in red text]*:N:

Re: [systemd-devel] Any published books on systemd? A cookbook?

2020-08-31 Thread Tom Browder
On Mon, Aug 31, 2020 at 10:43 AM Arian Van Putten wrote: > > I can recommend the "Systemd for Administrators" series on > http://0pointer.net/blog/archives.html as a good cookbook introduction to > systemd Thank you, Arian. Best regards, -Tom ___ sy

Re: [systemd-devel] Any published books on systemd? A cookbook?

2020-08-29 Thread Tom Browder
On Sat, Aug 29, 2020 at 12:22 PM Reindl Harald wrote: > Am 29.08.20 um 19:17 schrieb Tom Browder: ... > make the script (besides that scripts don't belong to /etc) a I will change that. > oneshot-service and learn about > https://www.freedesktop.org/software/systemd/man/sy

Re: [systemd-devel] Any published books on systemd? A cookbook?

2020-08-29 Thread Tom Browder
On Fri, Aug 28, 2020 at 11:12 Andrei Borzenkov wrote: > 28.08.2020 17:47, Tom Browder пишет: > > I want to create a service file that has to consider other services. ... > If you tell us what you try to achieve, someone may have an idea how > to express it using systemd. O

[systemd-devel] Any published books on systemd? A cookbook?

2020-08-28 Thread Tom Browder
I want to create a service file that has to consider other services. I have looked at the man pages and probably don't have enough life expectancy to properly grok them. Can anyone point to a good book or cookbook for systemd? Digital Ocean has the best I've found so far. Most "recipes" seem to b

Re: [systemd-devel] [EXT] Re: Need help with setting up systemd for Apache on Debian 10

2020-08-25 Thread Tom Browder
On Tue, Aug 25, 2020 at 12:43 AM Ulrich Windl wrote: > Hi! > The next challenge with systemd would be this: Have a password-protected > server key, needing to ask for the password when starting... Sounds like a good idea, Ulrich, but I'm not sure if I want to disturb my working setup at the momen

Re: [systemd-devel] Need help with setting up systemd for Apache on Debian 10

2020-08-24 Thread Tom Browder
On Sun, Aug 23, 2020 at 12:19 PM Tom Browder wrote: > There is no official Apache systemd setup for Apache from source, and ... My original post was too harsh. My requests for help haven't been very clear. Thanks to hints and questions here, I took the time to do a little scarier experim

Re: [systemd-devel] Need help with setting up systemd for Apache on Debian 10

2020-08-23 Thread Tom Browder
On Sun, Aug 23, 2020 at 12:36 PM Tomasz Torcz wrote: > ... > First of all, you got correct installation by installing distribution > package. You can stop there. > If you want to do the work, anyway, do the following: > – read man systemd.unit, systemd.service, maybe some systemd tutorials

[systemd-devel] Need help with setting up systemd for Apache on Debian 10

2020-08-23 Thread Tom Browder
There is no official Apache systemd setup for Apache from source, and I didn't get any help from users there. I tried to mimic a good solution by first installing Apache with the Debian package and finding all the systemd files with "httpd" or "apache" in the name. That resulted in the following li

Re: [systemd-devel] Systemd Questions

2016-08-14 Thread Tom Browder
On Sunday, August 14, 2016, Mantas Mikulėnas wrote: ... Thank you for all the info, Mantas--very helpful! Best regards, -Tom ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-deve

[systemd-devel] Systemd Questions

2016-08-14 Thread Tom Browder
I am trying to get comfortable with systemd on Debian 8 but am very confused by the complex documentation. I am a simple man with a simple need to be able to modiify startup scripts for several packages I build from source which currently are: + apache (httpd) + postgresql + bind9 I'm not sure o