Skip to content

Instantly share code, notes, and snippets.

@swaldman
Last active August 18, 2019 22:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swaldman/e380bf01899d079e11e58b794efa4bfb to your computer and use it in GitHub Desktop.
Save swaldman/e380bf01899d079e11e58b794efa4bfb to your computer and use it in GitHub Desktop.
eth-netcompile installation
[Unit]
Description=eth-netcompile networked solidity compiler
After=syslog.target network.target
[Service]
User=eth-netcompile
Group=eth-netcompile
Environment=PATH=/usr/local/pkg/node/bin
Environment=LD_LIBRARY_PATH=/usr/local/pkg/node/lib
Type=simple
ExecStart=/usr/local/pkg/node/bin/node /usr/local/gitproj/eth-netcompile/server.js -p 8456
[Install]
WantedBy=multi-user.target

Setting up ethnetcompile as a service under systemd Fedora 23

  1. Create user eth-netcompile with useradd
  2. sudo mkdir /usr/local/gitproject
  3. in /usr/local/gitproject, git clone git@github.com:swaldman/eth-netcompile.git
  4. in /usr/local/gitproject/eth-netcompile, /usr/local/pkg/node/bin/npm install --save to get dependencies
  5. Install the eth-netcompile.service file (also in this gist) in /usr/lib/systemd/system/
  6. Make a symlink from /etc/systemd/system/multi-user.target.wants/eth-netcompile.service to /usr/lib/systemd/system/eth-netcompile.service
  7. systemctl enable eth-netcompile.service followed by systemctl start eth-netcompile.service
  8. Verify that logging goes to the systemd journal with journalctl --follow -u eth-netcompile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment