Bug#526201: runit: Environment variables in run script

2018-06-03 Thread KAction
control: tag -1 +wontfix control: close -1 [2017-01-06 11:38] Dmitry Bogatov > What is wrong with > > $ cd /etc/service/foo > $ echo 'OPTIONS=-bar > conf > $ cat run > #!/bin/sh > . conf > [...] > > I dislike idea to complicate runit itself, but it is not in my > competence. Such change is be

Bug#526201: runit: Environment variables in run script

2017-01-06 Thread Dmitry Bogatov
[2009-04-29 22:38] Michael Gebetsroither > > part text/plain1289 > Package: runit > Version: 2.0.0-1 > Severity: wishlist > > Hi, > > would it be possibel to include environment variables parsing within run > script itself, like chpst -e? > > It's rather ugly to use chpst fo

Bug#526201: runit: Environment variables in run script

2009-09-12 Thread Jameson Rollins
Hi, Michael. The way I usually handle this issue is similar to your suggestion, but instead I just keep the variables in the env/ directory and then retrieve them from there. For instance: OPTIONS=$(head -1 env/OPTIONS) exec chpst -e env atftpd --no-fork --daemon $OPTIONS It's a little cumberso

Bug#526201: runit: Environment variables in run script

2009-04-29 Thread Michael Gebetsroither
Package: runit Version: 2.0.0-1 Severity: wishlist Hi, would it be possibel to include environment variables parsing within run script itself, like chpst -e? It's rather ugly to use chpst for configuration variables: eg. for atftpd exec chpst -e env sh -c atftpd --no-fork --daemon \$OPTIONS wi