SChernykh / p2pool

Decentralized pool for Monero mining
GNU General Public License v3.0
1.11k stars 130 forks source link

Issues with config and data files #323

Open toxicroadkill opened 3 weeks ago

toxicroadkill commented 3 weeks ago

when launching p2pool, it creates the log file, cache, and peers file from whatever directory you start it from

there should be a option to specify where it places it's "data" files, as well as the log file

also the option for --config (file), what is the format of the config file? json, text/?? ive tried both with no luck

it would be nice to start a service with a simple command line with p2pool specifying the config file and in the config hold all the needed info wallet address, log file, data file/etc

thanks

SChernykh commented 3 weeks ago

config.json is only used if you want to mine on your own P2Pool chain (not main or mini chains). See https://github.com/SChernykh/p2pool/blob/master/config.json for an example.

You can run p2pool as a service and you can pass all parameters in the command line: https://github.com/SChernykh/p2pool/blob/master/docs/SYSTEMD.MD

You can run it as a service on Windows too, but you'll have to set it up manually.

As for the working directory for all P2Pool files, you can set it up in service parameters (Windows) or set it within the launch script (Linux). Having it as a command line parameter can be another option, but it's not implemented yet.

toxicroadkill commented 3 weeks ago

how about setting up a config file, so that you can put all the config in it, and not have to use long command lines to start it..for example, just passing a config file path, so you can have all the config info there makes editing and dealign with things so much easier..parsing a json file with config in it would be super easy

just a thought..with numerous options available having to put them all in a command line, is error prone, nad results in just a massive long cli entry

it would be very appreciated..

On Nov 6, 2024, at 7:43 AM, SChernykh @. @.>> wrote:

config.json is only used if you want to mine on your own P2Pool chain (not main or mini chains). See https://github.com/SChernykh/p2pool/blob/master/config.json https://github.com/SChernykh/p2pool/blob/master/config.json for an example.

You can run p2pool as a service and you can pass all parameters in the command line: https://github.com/SChernykh/p2pool/blob/master/docs/SYSTEMD.MD https://github.com/SChernykh/p2pool/blob/master/docs/SYSTEMD.MD You can run it as a service on Windows too, but you'll have to set it up manually.

As for the working directory for all P2Pool files, you can set it up in service parameters (Windows) or set it within the launch script (Linux). Having it as a command line parameter can be another option, but it's not implemented yet.

— Reply to this email directly, view it on GitHub https://github.com/SChernykh/p2pool/issues/323#issuecomment-2459656466, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASD5O3YTDHE5GTCVFNCA5NTZ7IFHPAVCNFSM6AAAAABRIMUWQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJZGY2TMNBWGY. You are receiving this because you authored the thread.

toxicroadkill commented 3 weeks ago

Also, a config option to put the log file and data files where you wish would be great also

Log-file-location /var/log/p2pool.log Data-file-location /whatever/daa_file.txt

^ you get the idea..just makes a much cleaner and easier to setup system

thanks

On Nov 6, 2024, at 11:05 PM, George Powell @.***> wrote:

how about setting up a config file, so that you can put all the config in it, and not have to use long command lines to start it..for example, just passing a config file path, so you can have all the config info there makes editing and dealign with things so much easier..parsing a json file with config in it would be super easy

just a thought..with numerous options available having to put them all in a command line, is error prone, nad results in just a massive long cli entry

it would be very appreciated..

On Nov 6, 2024, at 7:43 AM, SChernykh @. @.>> wrote:

config.json is only used if you want to mine on your own P2Pool chain (not main or mini chains). See https://github.com/SChernykh/p2pool/blob/master/config.json https://github.com/SChernykh/p2pool/blob/master/config.json for an example.

You can run p2pool as a service and you can pass all parameters in the command line: https://github.com/SChernykh/p2pool/blob/master/docs/SYSTEMD.MD https://github.com/SChernykh/p2pool/blob/master/docs/SYSTEMD.MD You can run it as a service on Windows too, but you'll have to set it up manually.

As for the working directory for all P2Pool files, you can set it up in service parameters (Windows) or set it within the launch script (Linux). Having it as a command line parameter can be another option, but it's not implemented yet.

— Reply to this email directly, view it on GitHub https://github.com/SChernykh/p2pool/issues/323#issuecomment-2459656466, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASD5O3YTDHE5GTCVFNCA5NTZ7IFHPAVCNFSM6AAAAABRIMUWQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJZGY2TMNBWGY. You are receiving this because you authored the thread.