Skip to content

Conversation

@Sosthene00
Copy link
Contributor

(This is a cleaned up version of #849 )
I set up a Bitcoin Core and an Elements node on a Ubuntu machine for testing, and noticed that there was no elementsd.service file available in Elements repo as I expected, but a bitcoind.service file that seems to be an outdated version of the file in the Bitcoin Core repository.

Since I needed to create a systemd service, I modified the most recent version of bitcoind.service file for elementsd as it seems fit to me.

Besides replacing all occurrences of bitcoin and bitcoind, I also moved the debug.log file to another dir and the path to the bin is also different (/usr/local/bin/elementsd). This might be too specific to my project though.

I suggest to add it to the Elements repository along the existing files, as maybe some people might find it useful.

I'm pretty rookie with systemd too, I tried to stick to the example and recommandation in the Bitcoin Core repository, but I'd be glad if someone had suggestions to improve this.

…last Bitcoin Core version, ie PermissionsStartONly=true, ExecStartPre=/bin/chgrp elements /etc/elements, TimeoutStopSec=600 and ProtectHome=true
@Sosthene00 Sosthene00 changed the title Init files Init: add elementsd.service file Apr 14, 2020
@stevenroose
Copy link
Contributor

Thanks! ACK 536939e

@stevenroose stevenroose merged commit a19c972 into ElementsProject:master Apr 16, 2020
@Sosthene00 Sosthene00 deleted the init_files branch April 16, 2020 16:42
stevenroose pushed a commit that referenced this pull request Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants