Artix Linux Forum

Init systems => S6 => Topic started by: AlexanderAlex on 01 December 2022, 16:45:08

Title: [SOLVED] i2pd-s6
Post by: AlexanderAlex on 01 December 2022, 16:45:08
Service as it is right now doesn't read configuration at all. Adding the following flags fixes that:
Code: [Select]
--conf=/var/lib/i2pd/i2pd.conf
and
Code: [Select]
--datadir=/var/lib/i2pd
Title: Re: i2pd-s6
Post by: Dudemanguy on 02 December 2022, 01:29:56
Haven't set aside the time to double check this yet but according to the manual, i2pd is supposed to default to /var/lib/i2pd/i2pd.conf for reading conf files. Is it lying? Also, I don't see why the datadir argument would be needed if you just are trying to grab the path to the config file?
Title: Re: i2pd-s6
Post by: AlexanderAlex on 02 December 2022, 03:09:17
It doesn't even try to read the any configuration file w/o the first flag and w/o the second flag it sets the data directory to /tmp/i2pd, which not only breaks persistence, but also prevents it from reading the tunnel configuration.
Title: Re: i2pd-s6
Post by: Dudemanguy on 02 December 2022, 04:31:24
Okay so the manual is lying but you can just set the datadir in the conf file right?
Title: Re: i2pd-s6
Post by: AlexanderAlex on 02 December 2022, 05:02:29
No, you can set the data directory only through the command line flag.
Title: Re: i2pd-s6
Post by: Dudemanguy on 02 December 2022, 15:32:14
what a weird program. I just pushed a new i2pd-s6 with the two new arguments in the script. Thanks for reporting.