Skip to content

j-p-d-e-v/systemd-service-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Systemd Service Config Generation

This is for generating systemd service configuration files. It can also copy it directly to the system service directory.

Pre-requisites

  • Python3(latest)
  • Pip

Configuration Example

[app]
description="Hello Service"
exec_start="python /mnt/coding/coding/pysystemdgenerator/systemdgenerator/test/hello.py"
working_dir="/mnt/coding/coding/pysystemdgenerator/systemdgenerator/test"
user="root"

[environment]
envs=[
  { key = "message", value = "Hello There!"},
  { key = "name", value = "Secret"}
]
env_files = ["/mnt/coding/coding/pysystemdgenerator/systemdgenerator/test/.env"]

Usage

  1. Install requirements pip install -r requirements.txt
  2. Prepare the configuration file at place in under the config directory.
  3. A. Generate with arguments. python main.py <config> <output>
  4. B. Generate with input. python main.py

About

Generate a system config service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published