Re: [systemd-devel] I want to use an environmental variable for LimitNOFILE= in a service unit. Is it possible?

2015-09-07 Thread Eliezer Croitoru
Thanks For all the suggestions!! Indeed I was unaware of all the options that systemd offers in terms of overriding the default service files. Systemd makes it much simpler then sysVinit scripts replacement. Eliezer On 03/09/2015 20:10, Reindl Harald wrote: Am 03.09.2015 um 19:08 schrieb

Re: [systemd-devel] I want to use an environmental variable for LimitNOFILE= in a service unit. Is it possible?

2015-09-03 Thread Lennart Poettering
On Thu, 03.09.15 17:45, Eliezer Croitoru (elie...@ngtech.co.il) wrote: > Hey, > > I am working on a service for squid caching service. > I have a need to define LimitNOFILE from an environmental variable instead > of only the service file. No this does not work. Environment expansion is only

[systemd-devel] I want to use an environmental variable for LimitNOFILE= in a service unit. Is it possible?

2015-09-03 Thread Eliezer Croitoru
Hey, I am working on a service for squid caching service. I have a need to define LimitNOFILE from an environmental variable instead of only the service file. The service unit I am using is: ##START [Unit] Description=Squid Web Proxy Server Documentation=man:squid(8) After=network.target

Re: [systemd-devel] I want to use an environmental variable for LimitNOFILE= in a service unit. Is it possible?

2015-09-03 Thread Eliezer Croitoru
I noticed it doesn't work. And well since I am building an RPM the only option I can think of is either use a custom startup script which will set the limits manually or define the service as a config file in the RPM. Maybe you have some experience with overwriting the service files with

Re: [systemd-devel] I want to use an environmental variable for LimitNOFILE= in a service unit. Is it possible?

2015-09-03 Thread Tomasz Torcz
On Thu, Sep 03, 2015 at 08:08:13PM +0300, Eliezer Croitoru wrote: > I noticed it doesn't work. > And well since I am building an RPM the only option I can think of is either > use a custom startup script which will set the limits manually or define the > service as a config file in the RPM. > >

Re: [systemd-devel] I want to use an environmental variable for LimitNOFILE= in a service unit. Is it possible?

2015-09-03 Thread Lennart Poettering
On Thu, 03.09.15 20:08, Eliezer Croitoru (elie...@ngtech.co.il) wrote: > I noticed it doesn't work. > And well since I am building an RPM the only option I can think of is either > use a custom startup script which will set the limits manually or define the > service as a config file in the RPM.

Re: [systemd-devel] I want to use an environmental variable for LimitNOFILE= in a service unit. Is it possible?

2015-09-03 Thread Reindl Harald
Am 03.09.2015 um 19:08 schrieb Eliezer Croitoru: I noticed it doesn't work. And well since I am building an RPM the only option I can think of is either use a custom startup script which will set the limits manually or define the service as a config file in the RPM. Maybe you have some