Skip to content

Instantly share code, notes, and snippets.

@mmacphail
Created September 16, 2017 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmacphail/acb042f0b46e89ccbc87ab685e218bdb to your computer and use it in GitHub Desktop.
Save mmacphail/acb042f0b46e89ccbc87ab685e218bdb to your computer and use it in GitHub Desktop.
Create datomic as a service on centos
[Unit]
Description=datomic Service
After=network.target
[Service]
Type=simple
User=datomic
ExecStart=/var/lib/datomic/datomic-free-0.9.5561.56/bin/transactor -Xms400m -Xmx400m /var/lib/datomic/datomic-free-0.9.5561.56/bin/transactor.properties
Restart=on-abort
[Install]
WantedBy=multi-user.target
@mmacphail
Copy link
Author

File to write: /etc/systemd/system/datomic.service
Then: sudo systemctl daemon-reload
and: sudo systemctl start datomic

From : Scott Linux

@theronic
Copy link

theronic commented Apr 3, 2019

You also need to create a user named datomic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment