$ brew install elixir
$ elixir --version
# Run interactive elixir
$ iex
# Running a elixir script
To create a systemd (systemctl) job, put your service description file in:
/lib/systemd/system/name.service
or
/etc/systemd/system/name.service
Then to enable it do: sudo systemctl enable name
Everytime, you edit the service definition file, you have to reload the daemon:
This file contains 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
https://medium.com/@sulmanweb/setting-up-visual-studio-code-for-ruby-on-rails-development-beb0cb8c3749 | |
extensions: | |
- Ruby | |
- Rufo (Ruby Formatter) | |
gems: | |
- Rufo | |
- Rubocop |
- Put this in
/lib/systemd/system/bitcoind.service
[Unit]
Description=Bitcoin daemon
After=network.target
[Service]
ExecStart=/usr/bin/bitcoind -conf=/home/deploy/.bitcoin/bitcoin.conf -pid=/home/deploy/.bitcoin/bitcoind.pid
RuntimeDirectory=bitcoind
User=deploy
# /lib/systemd/system/sidekiq.service
#
# systemd unit file for CentOS 7, Ubuntu 15.04
#
# Customize this file based on your bundler location, app directory, etc.
# Put this in /usr/lib/systemd/system (CentOS) or /lib/systemd/system (Ubuntu).
# Run:
# - systemctl enable sidekiq
# - systemctl {start,stop,restart} sidekiq