[Wylug-discuss] Setting environment variable for service in Debian

Türker Sezer turkersezer at tsdesign.info
Thu Oct 22 18:13:22 UTC 2015


On Thu, Oct 22, 2015 at 10:17 AM, David Morris <david.morris at 3gtelecoms.net>
wrote:

> Hi All,
>
> Any idea how I set an environment variable for a service in Debian?
> I want to set the python path. This works fine when I SSH to my box and
> run "export PYTHONPATH=mypath" but this isn't available to services as it's
> only local to my shell.
> I'm presuming I can set the environment variables in the init.d config
> file for the service, but I can't see where.
>

Hi David,

You can run same export command in init script. You can see some samples if
you check existent scripts in init.d folder.


-- 
Türker Sezer
TS Design Informatics LTD.

http://www.tsdesign.info/
skype: tsdesign_info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/wylug-discuss/attachments/20151022/04d06796/attachment.html>


More information about the Wylug-discuss mailing list