Giter VIP home page Giter VIP logo

zhen's Introduction

Zhen

Zhen - process and cron manager

名称取自 先轸

❤️ A project by txthinking.com

Install via nami

nami install joker zhen

Usage

Run zhen background after reboot, sudo or root required. Optional, but usually you need

zhen init

Run zhen background now, sudo or root required

joker zhen background

Add a command, no sudo or root required

zhen brook server -l :9999 -p hello

Usage

zhen: process and cron manager

    init                  run joker zhen background after reboot, sudo or root required
    background            this subcommand must be executed first, recommand: joker zhen background,
                          sudo or root required, it will wait for the network to be ready
    <command>             run command now and run it after reboot
    '* * * * *' <command> add command to cron task. UTC
    all                   show all commands
    ps                    show running commands
    st <id>               stop command by SIGTERM
    rs <id>               restart or start command
    rm <id>               remove command
    log <id>              show log of command
    env <key> <value>     set env
    env                   show all envs

Env

As you know, usually when the system just boots up, some environment variables do not exist, such as HOME, and the PATH variable is also relatively concise, and your command may depend on these environment variables, then you can use zhen to set.

For example, set HOME

zhen env HOME /root

For example, set PATH to current PATH

zhen env PATH $PATH

Show all env

zhen env

Network

As you know, usually when the system just boots up, the network may not be ready yet, don't worry, zhen will run all your commands after the network is ready.

Why

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

Where are the old jinbe?

It is in master branch.

zhen'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

Watchers

 avatar  avatar  avatar  avatar  avatar

zhen's Issues

jinbe not upgraded on last version, and not working for me

Hello
I dont may upgarde jinbe on last version, log:

nami remove jinbe

  • OK
    nami install jinbe:
    | Installed Version | v20220404 |

jinbe version
v20210401

Looks like not last version. I try run with this version brook but it not work:

jinbe joker brook server --listen :8081 --password some

jinbe list
0 /root/.nami/bin/joker /root/.nami/bin/brook server --listen :8081 --password some

but it not work, without jinbe - joker/brook work. Im on root, linux

无法添加`sudo`

例如 以下正常运行

joker /usr/bin/sudo -u a2 /usr/bin/v2ray/v2ray run -config /etc/v2ray/config1.json

以下joker 不生效

jinbe joker /usr/bin/sudo -u a2 /usr/bin/v2ray/v2ray run -config /etc/v2ray/config1.json

support darwin arm64

~ nami install github.com/txthinking/joker
2021/09/06 19:22:36 No files for darwin arm64
➜  ~ nami install github.com/txthinking/jinbe
2021/09/06 19:22:43 No files for darwin arm64

boa安装成功了吗

hi。
在我的vps上。
[root@racknerd-7b97d8 gopath]# which nami
/root/go/gopath/bin/nami
[root@racknerd-7b97d8 gopath]#
[root@racknerd-7b97d8 gopath]#
[root@racknerd-7b97d8 gopath]# cd ~
[root@racknerd-7b97d8 ~]# nami install github.com/brook-community/boa
+-------------------+--------------------------------+
| Package | github.com/brook-community/boa |
| | |
| Installed Version | v20210214 |
| Installed Files | boa |
+-------------------+--------------------------------+
[root@racknerd-7b97d8 ~]# which boa
/usr/bin/which: no boa in (/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/go/bin:/root/go/gopath/bin:/usr/local/nginx/sbin:/root/bin)
[root@racknerd-7b97d8 ~]#

boa的可执行文件在哪里?

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.