Skip to main content

SERVLY

A simple process management tool for Linux, similar to PM2, designed to simplify application deployment and management.

Features

  • Start, stop, and restart services defined in a servly.yml configuration file
  • View real-time logs with service name highlighting
  • Automatic process supervision and PID management
  • Environment variable support
  • Simple YAML configuration

Installation

# Using pip
pip install servly

# From source
git clone https://github.com/yourusername/servly.git
cd servly
pip install -e .

Usage

Quick Start

  1. Create a servly.yml file in your project:
# Basic format: service-name: command
web-server: node server.js

# Detailed format
api:
  cmd: python api.py
  cwd: ./api
  env:
    NODE_ENV: production
  1. Start your services:
servly start

Core Commands

  • Start Services:

    servly start [all | service-name]
    

    Starts all services or a specific service by name.

  • Stop Services:

    servly stop [all | service-name]
    

    Stops all running services or a specific service by name.

  • Restart Services:

    servly restart [all | service-name]
    

    Restarts all services or a specific service by name.

  • View Service Logs:

    servly log [all | service-name]
    

    Shows logs in real-time (similar to tail -f).

  • List Services:

    servly list
    

    Shows status of all configured services.

Configuration

servly.yml

The servly.yml file supports two formats:

  1. Simple format:

    service-name: command to run
    
  2. Detailed format:

    service-name:
      cmd: command to run
      cwd: working directory (optional)
      env:
        ENV_VAR1: value1
        ENV_VAR2: value2
    

Note: The name "servly" is reserved and cannot be used as a service name.

Directory Structure

Servly creates a .servly directory to store runtime information:

.servly/
├── logs/
│   ├── [service-name]-out.log    # Standard output logs
│   └── [service-name]-error.log  # Error logs
├── pids/
│   └── [service-name].pid        # Process ID files

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

servly-0.3.1.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

servly-0.3.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file servly-0.3.1.tar.gz.

File metadata

  • Download URL: servly-0.3.1.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for servly-0.3.1.tar.gz
Algorithm Hash digest
SHA256 695b905b5888517957bcbcacaa13c34dbdadfa1754a4244c190733aeee1299d9
MD5 ab9b988ee8be3f00811e6844f54c8aa6
BLAKE2b-256 19805a5b56a88420c27825a580b75083de9f29dea0d27aa6f6e4dde74f74b2e1

See more details on using hashes here.

File details

Details for the file servly-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: servly-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for servly-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe210f63f5822c6d1a3ea2b1b594160c9d4d4ef5ee671f6863c08b7b9db69943
MD5 ad939a69000afc65a18fe19f515e9923
BLAKE2b-256 ee7e7a2783a1afa8369729c2e1c0d6a1267d8ac998f8eb24df7d95657dc06bf7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page