# Daemon Control (daemonctl)
**Description**: A python framework and tools to manage small applications
- **Technology stack**: Plain python
- **Status**: Running in production [CHANGELOG](CHANGELOG.md).
- When administrating alot of applications on different servers or developing alot of small services it's often desireable to keep the inhouse services seperate from system services.
## Dependencies
- python >= 2.6
- setprocname: to have cleaner names in ps for the daemons (not required)
- fast-entry_points
## Installation
sudo ./setup.py install
## Configuration
configfile in /usr/local/etc/daemonctl.conf (or where DAEMONCTL is installed)
Configformat:
```
logpath = logdir # Path to directory where log files will be placed
pidpath = piddir # Path to directory where pid files will be placed
modules {
module1 {
name = modulename # name of daemon in status and other daemonctl commands (should include %(id)s if type=dynamic)
type = moduletype # single or dynamic
path = modulepath # Path to where the files are (will do chdir to here before running command)
execcmd = commandline # Command to run (will be prefixed with path)
listcmd = listcommand # Command that returns id:s for type=dynamic, one id per row
logpath = logdir # Can override the global logpath
pidpath = piddir # Can override the global pidpath
runas = username # Run daemon as this user
}
}
```
## Usage
```
Usage: daemonctl [options] <command> [daemon]
Commands:
start Start daemons
stop Stop daemons ("-f" to force)
restart Restart daemons (stop+start)
forcestop Force daemons to stop (kill -9)
status Get daemon status
enable Enable an application
disable Disable an application
hide Hide daemon from status
show Unhide daemon from status
tail Tail a daemon log
less Less a daemon log
csvstatus Get daemon status in csv format
Options:
-h, --help show this help message and exit
-f, --force
-r, --regex Select daemons using regexp only
-g, --glob Select daemons using globbing only
-e, --exact Select daemons using exact match only
-c CONFIG, --config=CONFIG
-a, --showall Show hidden
-v, --version Print version
```
## Known issues
The code is very messy
## Getting help
If you have questions, concerns, bug reports, etc, please file an issue in this repository's Issue Tracker.
## Getting involved
Feature request with documentation, fixes, new features and general beutification is welcome.
----
## Open source licensing info
Copyright: SVT 2018
GNU General Public License version 3
[LICENSE](LICENSE)
except for [fastentrypoints.py](https://github.com/ninjaaron/fast-entry_points) which is Copyright (c) 2016, Aaron Christianson
---
## Primary Maintainer
Andreas Åkerlund https://github.com/thezulk
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共28个文件
py:16个
txt:4个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:daemonctl-1.3.15.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
daemonctl-1.3.15.tar.gz (28个子文件)
daemonctl-1.3.15
MANIFEST.in 117B
PKG-INFO 4KB
fastentrypoints.py 4KB
bumpversion.py 3KB
daemonctl.egg-info
PKG-INFO 4KB
SOURCES.txt 487B
entry_points.txt 141B
top_level.txt 10B
dependency_links.txt 1B
src
main.py 15KB
fulltb.py 2KB
daemonctl.conf 111B
logwriter.py 3KB
dts.py 6KB
locks.py 4KB
daemonconfig.py 4KB
__init__.py 456B
daemonlog.py 3KB
piptool.py 5KB
daemon.py 2KB
daemonctl.complete 1KB
runasdaemon.py 5KB
api.py 3KB
modules.py 4KB
daemonctl.init 685B
setup.cfg 38B
setup.py 2KB
README.md 3KB
共 28 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 微信小程序 - 图书管理系统源码.zip
- 微信小程序 - 图片自适应 ,富文本解析源码.zip
- 微信小程序 - 同乐居商城:购物车合算源码
- 1、根据输入的三条边值判断能组成何种三角形,并设计测试数据进行判定覆盖测试 三条边为变量a、b、c,范围为1≤边值≤10,不在范
- SQL server 练习题目8道(小白教学).zip
- Python 手写实现 iD3 决策树算法-根据信息增益公式.zip
- 411675952289057车联助手-小窗版(三星)3.5.1.apk
- 三种快速排序方法合并在一个文件中以便直接运行的Python代码示例
- 937712277954201实习5.word
- 2程序语言基础知识pdf1_1716337722703.jpeg
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功