Giter Club home page Giter Club logo

docker-sphinxsearch's Introduction

Docker-sphinxsearch

Docker image for Sphinx search engine

docker pull macbre/sphinxsearch:latest

or from GitHub Containers Registry:

docker pull ghcr.io/macbre/sphinxsearch:latest

Usage example

You can use this image in docker-compose-powered app:

services:
  sphinx:
    image: macbre/sphinxsearch:3.7.1
    ports:
    - "127.0.0.1:36307:36307" # bind to local interface only!
    volumes:
    - ./data:/opt/sphinx/indexes  # directory where sphinx will store index data
    - ./sphinx.conf:/opt/sphinx/conf/sphinx.conf  # SphinxSE configuration file
    mem_limit: 512m # match indexer.value from sphinx.conf

or you can provide your custom config file:

services:
  sphinx:
    image: macbre/sphinxsearch:3.7.1
    environment:
    - SPHINX_CONFIG_FILE=/opt/sphinx/conf/my_custom_file.conf
    ports:
    - "127.0.0.1:36307:36307" # bind to local interface only!
    volumes:
    - ./data:/opt/sphinx/indexes  # directory where sphinx will store index data
    - ./my_custom_file.conf:/opt/sphinx/conf/my_custom_file.conf  # SphinxSE configuration file
    mem_limit: 512m # match indexer.value from sphinx.conf
  1. First, execute docker-compose run sphinx indexer --all to prepare indices. Otherwise, you'd end up with WARNING: index 'test_index': prealloc: failed to open /opt/sphinx/indexes/test_index/test_index.sph: No such file or directory; NOT SERVING error.
  2. Then, execute docker-compose up -d to run sphinsearch daemon in the background.

Read more at https://lukaszherok.com/post/view/9/Running%20SphinxSearch%20in%20Podman%20container

3.7.1, latest

Sphinx 3.7.1 (commit da9f8a4e7)
Copyright (c) 2001-2024, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Built on: #1-Alpine SMP Tue, 19 Jul 2022 15:30:18 +0000
Built with: GNU 10.3.1
Build date: Mar 28 2024
Build type: release
Configure flags: cmake
Compiled DB drivers: mysql-dynamic pgsql-dynamic odbc-dynamic
Compiled features: libexpat libstemmer re2 jemalloc
Versions: binlog_format v.11, index_format v.63, udf_api v.23
Enabled dynamic drivers: mysql pgsql

3.6.1

Sphinx 3.6.1 (commit c9dbedabf)
Copyright (c) 2001-2023, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

Built on: #1-Alpine SMP Tue, 19 Jul 2022 15:30:18 +0000
Built with: GNU 10.3.1
Build date: Oct  4 2023
Build type: release
Configure flags: cmake
Compiled DB drivers: mysql-dynamic pgsql-dynamic odbc-dynamic
Compiled features: libexpat libstemmer re2 jemalloc
Versions: binlog_format v.10, index_format v.63, udf_api v.23
Enabled dynamic drivers: mysql pgsql

3.5.1

Sphinx 3.5.1 (commit 82c60cbfe)
Copyright (c) 2001-2023, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

Built on: Linux alpine314 5.10.131-0-lts #1-Alpine SMP Tue, 19 Jul 2022 15:30:18 +0000 x86_64 Linux
Built with: gcc 10.3.1
Build date: Feb  2 2023
Build type: release
Configure flags:  '--enable-dl' '--with-mysql' '--with-pgsql' '--with-unixodbc' 'CXXFLAGS=-DSPHINX_TAG= -DNDEBUG -O3 -g1 -D__MUSL__' 'LDFLAGS=-static-libstdc++ -static-libgcc'
Compiled DB drivers: mysql-dynamic pgsql-dynamic odbc-dynamic
Compiled features: libexpat libstemmer re2 jemalloc
Versions: binlog_format v.10, index_format v.62, udf_api v.23

3.4.1

Sphinx 3.4.1 (commit efbcc658)
Copyright (c) 2001-2021, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

Built on: Linux alpine312 5.4.43-1-lts #2-Alpine SMP Thu, 28 May 2020 20:13:48 UTC x86_64 Linux
Built with: gcc 9.3.0
Build date: Jul  9 2021
Build type: release
Configure flags:  '--enable-dl' '--with-mysql' '--with-pgsql' '--with-unixodbc' 'CXXFLAGS=-DSPHINX_TAG= -DNDEBUG -O3 -g1 -D__MUSL__' 'LDFLAGS=-static-libstdc++ -static-libgcc'
Compiled DB drivers: mysql-dynamic pgsql-dynamic odbc-dynamic
Versions: binlog_format v.8, index_format v.55, udf_api v.17
Enabled dynamic drivers: mysql pgsql

3.3.1

Sphinx 3.3.1 (commit b72d67bc)
Copyright (c) 2001-2020, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

Built on: Linux alpine312 5.4.43-1-lts #2-Alpine SMP Thu, 28 May 2020 20:13:48 UTC x86_64 Linux
Built with: gcc 9.3.0
Build date: Jul  6 2020
Build type: release
Configure flags:  '--enable-dl' '--with-mysql' '--with-pgsql' '--with-unixodbc' 'CXXFLAGS=-DSPHINX_TAG= -DNDEBUG -O3 -g1 -D__MUSL__' 'LDFLAGS=-static-libstdc++ -static-libgcc'
Compiled DB drivers: mysql-dynamic pgsql-dynamic odbc-dynamic
Enabled dynamic drivers: mysql pgsql

3.2.1

Sphinx 3.2.1 (commit f152e0b8)
Copyright (c) 2001-2020, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

Built on: Linux alpine38 4.14.69-0-vanilla #1-Alpine SMP Mon Sep 10 19:33:23 UTC 2018 x86_64 Linux
Built with: gcc 6.4.0
Build date: Jan 31 2020
Build type: release
Configure flags:  '--enable-dl' '--with-mysql' '--with-pgsql' '--with-unixodbc' 'CXXFLAGS=-DSPHINX_TAG= -DNDEBUG -O3 -g1 -D__MUSL__' 'LDFLAGS=-static-libstdc++ -static-libgcc'
Compiled DB drivers: mysql-dynamic pgsql-dynamic odbc-dynamic
Enabled dynamic drivers: mysql pgsql

3.1.1

Sphinx 3.1.1 (commit 612d99f4)
Copyright (c) 2001-2018, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

Built on: Linux alpine38 4.14.69-0-vanilla #1-Alpine SMP Mon Sep 10 19:33:23 UTC 2018 x86_64 Linux
Built with: gcc 6.4.0
Build date: Oct 17 2018
Build type: release
Configure flags:  '--enable-dl' '--with-mysql' '--with-pgsql' '--with-unixodbc' 'CXXFLAGS=-DSPHINX_TAG= -DNDEBUG -O3 -g1 -D__MUSL__' 'LDFLAGS=-static-libstdc++ -static-libgcc'
Compiled DB drivers: mysql-dynamic pgsql-dynamic odbc-dynamic
Enabled dynamic drivers: mysql pgsql

3.0.3

Sphinx 3.0.3 (commit facc3fb)
Copyright (c) 2001-2018, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

Built on: Linux ubuntu16 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Built with: gcc 5.4.0
Build date: Mar 30 2018
Build type: release
Configure flags:  '--enable-dl' '--with-mysql' '--with-pgsql' '--with-unixodbc' 'CXXFLAGS=-DSPHINX_TAG= -DNDEBUG -O3 -g1' 'LDFLAGS=-static-libstdc++'
Compiled DB drivers: mysql-dynamic pgsql-dynamic odbc-dynamic
Enabled dynamic drivers: mysql pgsql

3.0.1

Sphinx 3.0.1 (commit 7fec4f6)
Copyright (c) 2001-2017, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

Built on: Linux ubuntu16desktop 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Built with: gcc 5.4.0
Build date: Dec 17 2017
Build type: release
Configure flags:  '--enable-dl' '--with-mysql' '--with-pgsql' 'CXXFLAGS=-DSPHINX_TAG= -g1' 'LDFLAGS=-static-libstdc++'
Compiled DB drivers: mysql-dynamic pgsql-dynamic
Enabled dynamic drivers: mysql pgsql

Testing your changes locally

docker build . -t macbre/docker-sphinxsearch

# or fetch from the repository and tag it accordingly
docker pull ghcr.io/macbre/sphinxsearch:latest
docker tag ghcr.io/macbre/sphinxsearch:latest macbre/docker-sphinxsearch

make index
make start && sleep 2
make query

docker-sphinxsearch's People

Contributors

7olstoy avatar macbre avatar reneleonhardt avatar thewind1984 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-sphinxsearch's Issues

FATAL: failed to open any config file

I don't know what's going on, but I can't find the file, but there seems to be nothing wrong with my configuration.

[xxx@xxxx dk_sphinx]# docker-compose run sphinx indexer --all
Sphinx 3.6.1 (commit c9dbedabf)
Copyright (c) 2001-2023, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

FATAL: failed to open any config file
[xxx@xxxx dk_sphinx]# docker-compose up 
[+] Running 1/0
 ✔ Container dk_sphinx-sphinx-1  Created                                                        0.0s 
Attaching to dk_sphinx-sphinx-1
dk_sphinx-sphinx-1  | Sphinx 3.6.1 (commit c9dbedabf)
dk_sphinx-sphinx-1  | Copyright (c) 2001-2023, Andrew Aksyonoff
dk_sphinx-sphinx-1  | Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
dk_sphinx-sphinx-1  | 
dk_sphinx-sphinx-1  | [Wed Jan  3 06:25:04.558 2024] [1:1] using config file '/opt/sphinx/conf/my_custom_file.conf'...
dk_sphinx-sphinx-1  | [Wed Jan  3 06:25:04.558 2024] [1:1] listening on all interfaces, port=36307
dk_sphinx-sphinx-1  | listening on all interfaces, port=36307
dk_sphinx-sphinx-1  | loading 1 indexes...
dk_sphinx-sphinx-1  | [Wed Jan  3 06:25:04.559 2024] [1:7] WARNING: index 'test_index': prealloc: failed to open /opt/sphinx/indexes/test_index/test_index.sph: No such file or directory; NOT SERVING
dk_sphinx-sphinx-1  | WARNING: index 'test_index': prealloc: failed to open /opt/sphinx/indexes/test_index/test_index.sph: No such file or directory; NOT SERVING
dk_sphinx-sphinx-1  | [Wed Jan  3 06:25:04.560 2024] [1:1] accepting connections
dk_sphinx-sphinx-1  | accepting connections
dk_sphinx-sphinx-1  | [Wed Jan  3 06:25:04.561 2024] [1:20] warming up 0 indexes...
dk_sphinx-sphinx-1  | [Wed Jan  3 06:25:04.561 2024] [1:20] warmed up 0 indexes in 0.0 sec

The following is a screenshot of the relevant:

2024-01-03_14-32
2024-01-03_14-31

CMD command failed inside Dockerfile

Hello @macbre ,

regarding the latest PR you merged in, the last line

CMD searchd --nodetach --config ${CONF_FILE}

does not work. It fails with the error

FATAL: malformed or unknown option near '--config'; use '-h' or '--help' to see available options.

I suppose here could be different cases to fix it

  • CMD searchd --nodetach --config "${CONF_FILE}"
  • CMD ["searchd", "--nodetach", "--config", "${CONF_FILE}"]

need to be checked ASAP...

Unix syslog delivery error

When added to docker-compose, and calling docker-compose up sphinx I get:

•100% ➜ docker-compose up sphinx        
Starting biblefind_sphinx_1 ... error

ERROR: for biblefind_sphinx_1  Cannot start service sphinx: failed to initialize logging driver: Unix syslog delivery error

ERROR: for sphinx  Cannot start service sphinx: failed to initialize logging driver: Unix syslog delivery error
ERROR: Encountered errors while bringing up the project.

Docker compose chunk:

  sphinx:
    image: macbre/sphinxsearch:3.0.1
    ports:
    - "127.0.0.1:36307:36307" # bind to local interface only!
    volumes:
    - ./sphinx/data:/opt/sphinx/index
    - ./sphinx/sphinx.conf:/opt/sphinx/conf/sphinx.conf
    # mem_limit: 180m
    logging:
      driver: syslog
      options:
        tag: my-app-sphinx
    hostname: sphinx-docker

FATAL: failed to open log file '(null)': Bad address

Not sure if it's a Sphinx binary error.

I have a Sphinx config file located in /var/www/app/docker/sphinx/sphinx.conf. My .yaml config is the following:

  sphinx:
    image: macbre/sphinxsearch:3.1.1
    volumes:
      - ./docker/sphinx:/usr/local/var/data/
      - ./docker/sphinx:/opt/sphinx/index
      - ./docker/sphinx:/opt/sphinx/log
      - ./docker/sphinx/sphinx.conf:/opt/sphinx/conf/sphinx.conf

Everything is fine when running docker compose . However when I use the run command, I get the error:

sudo docker run --name=sphinx --mount type=bind,source=/var/www/app/docker/sphinx/sphinx.conf,target=/opt/sphinx/conf/sphinx.conf --mount type=bind,source=/var/www/app/docker,target=/opt/sphinx/log macbre/sphinxsearch:3.1.1
Sphinx 3.1.1 (commit 612d99f4)
Copyright (c) 2001-2018, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

[Mon Mar  4 09:08:38.133 2019] [1] using config file '/opt/sphinx/conf/sphinx.conf'...
[Mon Mar  4 09:08:38.135 2019] [1] FATAL: failed to open log file '(null)': Bad address

--- crashed SphinxAPI request dump ---

--- request dump end ---
Sphinx 3.1.1 (commit 612d99f4)
Handling signal 11
-------------- backtrace begins here ---------------
Program compiled with gcc 6.4.0
Configured with flags:  '--enable-dl' '--with-mysql' '--with-pgsql' '--with-unixodbc' 'CXXFLAGS=-DSPHINX_TAG= -DNDEBUG -O3 -g1 -D__MUSL__' 'LDFLAGS=-static-libstdc++ -static-libgcc'
Host OS is Linux alpine38 4.14.69-0-vanilla #1-Alpine SMP Mon Sep 10 19:33:23 UTC 2018 x86_64 Linux
Stack bottom = 0x7fffb1144657, thread stack size = 0x20000
Trying manual backtrace:
Something wrong with thread stack, manual backtrace may be incorrect (fp=0x1)
Wrong stack limit or frame pointer, manual backtrace failed (fp=0x1, stack=0x7fffb1150000, stacksize=0x20000)
-------------- backtrace ends here ---------------
Please, create a bug report in our bug tracker (http://sphinxsearch.com/bugs) and attach there:
a) searchd log, b) searchd binary, c) searchd symbols.
Look into the chapter 'Reporting bugs' in the documentation
(/usr/share/doc/sphinx/sphinx.txt or http://sphinxsearch.com/docs/current.html#reporting-bugs)
--- BT to source lines (depth 0): ---
conversion failed (error 'No such file or directory'):
  1. Run the command provided below over the crashed binary (for example, 'searchd'):
  2. Attach the source.txt to the bug report.
addr2line -e searchd > source.txt
--- BT to source lines finished ---
--- 0 active threads ---
------- CRASH DUMP END -------

FATAL: no valid indexes to serve

I attempt use your sphinx container with mediaWiki CMS.

If i run docker-compose up i get this crash:

sphinx_1      | [Tue Mar 31 09:49:31.647 2020] [1] using config file '/opt/sphinx/conf/sphinx.conf'...
sphinx_1      | [Tue Mar 31 09:49:31.650 2020] [1] listening on 127.0.0.1:9312
sphinx_1      | listening on 127.0.0.1:9312
sphinx_1      | precaching index 'wiki_main'
sphinx_1      | [Tue Mar 31 09:49:31.650 2020] [1] WARNING: index 'wiki_main': prealloc: failed to open /opt/sphinx/index/wiki_main.sph: No such file or directory; NOT SERVING
sphinx_1      | WARNING: index 'wiki_main': prealloc: failed to open /opt/sphinx/index/wiki_main.sph: No such file or directory; NOT SERVING
sphinx_1      | precaching index 'wiki_incremental'
sphinx_1      | [Tue Mar 31 09:49:31.650 2020] [1] WARNING: index 'wiki_incremental': prealloc: failed to open /opt/sphinx/index/wiki_incremental.sph: No such file or directory; NOT SERVING
sphinx_1      | WARNING: index 'wiki_incremental': prealloc: failed to open /opt/sphinx/index/wiki_incremental.sph: No such file or directory; NOT SERVING
sphinx_1      | [Tue Mar 31 09:49:31.650 2020] [1] FATAL: no valid indexes to serve
sphinx_1      | FATAL: no valid indexes to serve

How can i run indexing first in your container?

my sphinx.conf

# Sphinx configuration for MediaWiki

source src_wiki_main
{
        type            = mysql
        sql_host        = localhost
        sql_db          = palomnik
        sql_user        = root
        sql_pass        = root
        # these two are optional
        #sql_port       = 3306
        #sql_sock       = /var/lib/mysql/mysql.sock

        # pre-query
        sql_query_pre   = SET NAMES utf8

        sql_query       = SELECT page_id, page_title, page_namespace, page_is_redirect, old_id, old_text FROM page, revision, text WHERE rev_id=page_latest AND old_id=rev_text_id

        sql_attr_uint   = page_namespace
        sql_attr_uint   = page_is_redirect
        sql_attr_uint   = old_id

        # collect all category ids for category filtering
        sql_attr_multi  = uint category from query; SELECT cl_from, page_id AS category FROM categorylinks, page WHERE page_title=cl_to AND page_namespace=14
}

source src_wiki_incremental : src_wiki_main
{
        sql_query       = SELECT page_id, page_title, page_namespace, page_is_redirect, old_id, old_text FROM page, revision, text WHERE rev_id=page_latest AND old_id=rev_text_id AND page_touched>=DATE_FORMAT(CURDATE(), '%Y%m%d070000')
        # all other parameters are copied from the parent source
}

# main index definition
index wiki_main
{
        source          = src_wiki_main
        path            = /opt/sphinx/index/wiki_main

        morphology      = stem_en
        #stopwords      = /var/lib/sphinxsearch/data/stopwords.txt
        min_word_len    = 1

        # allow wildcard (*) searches
        min_infix_len = 2

        # charset definition and case folding rules "table"
        charset_table   = 0..9, A..Z->a..z, a..z, \
                U+C0->a, U+C1->a, U+C2->a, U+C3->a, U+C4->a, U+C5->a, U+C6->a, \
                U+C7->c,U+E7->c, U+C8->e, U+C9->e, U+CA->e, U+CB->e, U+CC->i, \
                U+CD->i, U+CE->i, U+CF->i, U+D0->d, U+D1->n, U+D2->o, U+D3->o, \
                U+D4->o, U+D5->o, U+D6->o, U+D8->o, U+D9->u, U+DA->u, U+DB->u, \
                U+DC->u, U+DD->y, U+DE->t, U+DF->s, \
                U+E0->a, U+E1->a, U+E2->a, U+E3->a, U+E4->a, U+E5->a, U+E6->a, \
                U+E7->c,U+E7->c, U+E8->e, U+E9->e, U+EA->e, U+EB->e, U+EC->i, \
                U+ED->i, U+EE->i, U+EF->i, U+F0->d, U+F1->n, U+F2->o, U+F3->o, \
                U+F4->o, U+F5->o, U+F6->o, U+F8->o, U+F9->u, U+FA->u, U+FB->u, \
                U+FC->u, U+FD->y, U+FE->t, U+FF->s,
}

# ! incremental index definition
index wiki_incremental : wiki_main
{
        source          = src_wiki_incremental
        path            = /opt/sphinx/index/wiki_incremental
}

indexer
{
        mem_limit       = 64M
}

searchd
{
        # IP address and port on which search daemon will bind and accept
        listen          = 127.0.0.1:9312
        # listen          = 127.0.0.1:36307

        log             = /opt/sphinx/log/searchd.log
        query_log       = /opt/sphinx/log/query.log

        # client read timeout, seconds
        read_timeout    = 5
        # maximum amount of children to fork
        max_children    = 30

        # a file which will contain searchd process ID
        pid_file = /var/run/searchd.pid
}

Unable to start crond

Hi, let me first say thanks for this docker image and apologise in advance if this is a noob question, I'm learning as I go. 😊

I've set up this image and got Sphinx to a point where I'm very happy with it, but I'm struggling to get a cronjob set up to periodically re-index. crond seems not to be running and as I try to launch it I get this:

node86411-webb30-search1:~# /etc/init.d/crond start
 * Starting busybox syslog ...
/sbin/syslogd: unrecognized option: Z
BusyBox v1.31.1 () multi-call binary.

Usage: syslogd [OPTIONS]

System logging utility

-nRun in foreground
-R HOST[:PORT]Log to HOST:PORT (default PORT:514)
-LLog locally and via network (default is network only if -R)
-C[size_kb]Log to shared mem buffer (use logread to read it)
-KLog to kernel printk buffer (use dmesg to read it)
-O FILELog to FILE (default: /var/log/messages, stdout if -)
-s SIZEMax size (KB) before rotation (default 200KB, 0=off)
-b NN rotated logs to keep (default 1, max 99, 0=purge)
-l NLog only messages more urgent than prio N (1-8)
-SSmaller output
-tStrip client-generated timestamps
-DDrop duplicates
-f FILEUse FILE as config (default:/etc/syslog.conf)
 * start-stop-daemon: failed to start `/sbin/syslogd'
 * Failed to start busybox syslog [ !! ]
 * ERROR: syslog failed to start
 * ERROR: cannot start crond as syslog would not start

Making it a bit more verbose with the -d option I see this:

+ ebegin 'Starting busybox syslog'
 * Starting busybox syslog ...
+ yesno 
+ '[' -z  ]
+ return 1
+ yesno 
+ '[' -z  ]
+ return 1
+ '[' -n  ]
+ '[' -n  ]
+ eval start-stop-daemon --start --exec /sbin/syslogd --pidfile /var/run/syslogd.pid -g wheel -k 027 -- -Z
+ start-stop-daemon --start --exec /sbin/syslogd --pidfile /var/run/syslogd.pid -g wheel -k 027 -- -Z
/sbin/syslogd: unrecognized option: Z
BusyBox v1.31.1 () multi-call binary.

Usage: syslogd [OPTIONS]

System logging utility

-nRun in foreground
-R HOST[:PORT]Log to HOST:PORT (default PORT:514)
-LLog locally and via network (default is network only if -R)
-C[size_kb]Log to shared mem buffer (use logread to read it)
-KLog to kernel printk buffer (use dmesg to read it)
-O FILELog to FILE (default: /var/log/messages, stdout if -)
-s SIZEMax size (KB) before rotation (default 200KB, 0=off)
-b NN rotated logs to keep (default 1, max 99, 0=purge)
-l NLog only messages more urgent than prio N (1-8)
-SSmaller output
-tStrip client-generated timestamps
-DDrop duplicates
-f FILEUse FILE as config (default:/etc/syslog.conf)
 * start-stop-daemon: failed to start `/sbin/syslogd'
+ eend 1 'Failed to start busybox syslog'
 * Failed to start busybox syslog [ !! ]
+ yesno 
+ '[' -z  ]
+ return 1
+ return 1
+ exit 1
 * ERROR: syslog failed to start
 * ERROR: cannot start crond as syslog would not start

The start-stop-daemon --start --exec /bin/syslogd seems to have a redundant option with it, and if I remove that I can start syslogd, but then crond will say syslogd is already running and still complain it cannot be started.

Any advice on what to do here? Thanks!

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.