Giter Site home page Giter Site logo

txthinking / joker Goto Github PK

View Code? Open in Web Editor NEW
187.0 9.0 26.0 92 KB

Joker can turn process into daemon. Zero-Configuration

Home Page: https://www.txthinking.com

License: GNU General Public License v3.0

Makefile 1.52% C 92.13% Shell 6.35%
joker process background linux c daemon golang command zero-configuration

joker's Introduction

Joker

Joker can turn process into daemon.

❤️ A project by txthinking.com

Install via nami

nami install joker

or build from Source

make

Usage

joker: run command as daemon

    <command>     run your command
    last          view pid of last command
    list          show running commands
    log <pid>     view log of command
    stop <pid>    stop a command by SIGTERM
    restart <pid> stop and run again
    help          show help
    version       show version

Example

joker brook server -l :9999 -p password

Where are log files?

All log files are stored in $HOME/.joker based on PID

Why

There are many tools, such as systemd, supervisord, etc. But I need a simple, small, clean, no configuration tool. Joker does not depend on systemd.

Auto start command at boot

You may like txthinking/jinbe

License

Licensed under The GPLv3 License

joker's People

Contributors

txthinking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

joker's Issues

[macOS] Can not find the log

> joker aria2c --enable-rpc

> joker list
47080 ttys011    0:00.03 aria2c --enable-rpc

> joker log 47080
cat: /Users/xxx/.joker/47088.*: No such file or directory

请Tx大佬考虑增加 joker stop的安全性 让

请Tx大佬考虑增加 joker stop的安全性
让 joker 只能 stop 那些 joker list 里的进程
以防万一错写了一个 joker list 以外的系统重要进程,给stop了,系统可能死机

日志查看功能增强

开发者您好,我用joker有些时日了,joker小巧轻便,确实好用,但我今天遇到了一点点小问题,不知道怎么解决。
joker可以查看日志的,joker log pid,但是如果我的进程发生错误意外结束了,没有了pid了,我该怎么查看对应的日志呢?
我用 nohup cmd &时,日志文件是保存在当前文件夹下的nohup.out里,不知道joker 的日志是保存在哪里

make遇错

git clone https://github.com/txthinking/joker joker-by-txthinking
cd joker-by-txthinking
make
显示:
gcc -Ilib -Wall -o list.o -c list.c
In file included from list.c:15:0:
joker.h:29:21: fatal error: sds/sds.h: No such file or directory
#include "sds/sds.h"
^
compilation terminated.
make: *** [list.o] Error 1

如何解决?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.