Skip to content

Instantly share code, notes, and snippets.

View alexfowler's full-sized avatar

Alexander G. Fowler alexfowler

View GitHub Profile
@alexfowler
alexfowler / README.md
Last active January 16, 2018 02:44 — forked from ewenchou/README.md
Run Python script as systemd service on debian linux

How to start a new systemd service

  1. Create a service file like myscript.service
  2. Put it in /lib/systemd/system/
  3. Reload systemd using command: systemctl daemon-reload
  4. Start the service using command: systemctl start myscript.service
  5. Enable auto start using command: systemctl enable myscript.service

Useful command line commands for managing systemd service

##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,