simple process manager
Project description
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.ymlconfiguration 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
- Create a
servly.ymlfile 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
- 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 listShows status of all configured services.
Configuration
servly.yml
The servly.yml file supports two formats:
-
Simple format:
service-name: command to run
-
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file servly-0.3.0.tar.gz.
File metadata
- Download URL: servly-0.3.0.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93502fa443fc629ed35058df0cf0291b899d51890573b155648af704cbf5bb93
|
|
| MD5 |
bc4e73fd3988c66239a0310522aa5154
|
|
| BLAKE2b-256 |
65ea72bffd797ecc0565c2b701f6352aab892ff3a4962e69ac5bc664cd4240d8
|
File details
Details for the file servly-0.3.0-py3-none-any.whl.
File metadata
- Download URL: servly-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fcc05810b81fbe2adaa9514917960bf98f919e6a1fc7fa9233e4bcccf7bef73
|
|
| MD5 |
bbd2abfa00e31874ba71fa93cd433d3d
|
|
| BLAKE2b-256 |
0ac57baab57a6697e514b1dd9662ec77cc4f45b8c4fe8f9046eed84e70085335
|