- Create user
eth-netcompile
withuseradd
sudo mkdir /usr/local/gitproject
- in
/usr/local/gitproject
,git clone [email protected]:swaldman/eth-netcompile.git
- in
/usr/local/gitproject/eth-netcompile
,/usr/local/pkg/node/bin/npm install --save
to get dependencies - Install the
eth-netcompile.service
file (also in this gist) in/usr/lib/systemd/system/
- Make a symlink from
/etc/systemd/system/multi-user.target.wants/eth-netcompile.service
to/usr/lib/systemd/system/eth-netcompile.service
systemctl enable eth-netcompile.service
followed bysystemctl start eth-netcompile.service
- Verify that logging goes to the systemd journal with
journalctl --follow -u eth-netcompile
Last active
August 18, 2019 22:30
-
-
Save swaldman/e380bf01899d079e11e58b794efa4bfb to your computer and use it in GitHub Desktop.
eth-netcompile installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment