Coder Social home page Coder Social logo

termux-services's Introduction

How to run services with runit on Termux

  1. Run make install
  2. Restart your Shell
  3. Start a service with sv up <servicename>. For example sv up crond
  4. To have a service start automatically, run sv-enable <service>

You can also stop services with sv down <service>

termux-services's People

Contributors

grimler91 avatar neo-oli 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

Watchers

 avatar  avatar  avatar

termux-services's Issues

fail runsv not running

On lineageos17.1

After install and restart and command

sv-enable tor

I get:

fail: tor: runsv not running

ok i updated bash_profile

warning: tor: can't open supervise/ok: No such file or directory

I have this problem

That's actually a reference to the problem another user had

unable to change to service directory: file does not exist

I having unable to change to service directory: file does not exist for any service

u0_a140@localhost ~ [100]> sv up docker
fail: docker: unable to change to service directory: file does not exist
u0_a140@localhost ~ [1]> sv up crond
fail: crond: unable to change to service directory: file does not exist

What could be causing this?

service-daemon script has CRLF endings

Because of that, on unix it throws data/data/com.termux/files/usr/bin/bash^M: bad interpreter: No such file or directory

Please use:
pkg install dos2unix
then
dos2unix service-daemon
to fix the issue.

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.