nextcloud / nextcloud/fulltextsearch

feature request: Startscript for FreeBSD

Open
#389 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement help wanted
Dominant language
PHP
Stars
234
Forks
64
Avg merge
6h 18m
Merged PRs (30d)
10

Description

My script to start fulltextsearch live as a daemon under FreeBSD.
It works, but I think someone can make it better.

#!/bin/sh
# REQUIRE: LOGIN
# occ_ftslive_enable="YES"

. /etc/rc.subr

name=occ_ftslive
occ_dir="/usr/local/www/nextcloud"
rcvar="${name}_enable"
load_rc_config "$name"
: ${occ_ftslive_enable="NO"}
: ${occ_ftslive_user="cloudsrv"}
command=$occ_dir/occ
command_interpreter=php
start_args=fulltextsearch:live""
stop_args=fulltextsearch:stop""
start_cmd="/usr/sbin/daemon -u $occ_ftslive_user $command_interpreter $command $start_args"
stop_cmd="/usr/sbin/daemon -u $occ_ftslive_user $command_interpreter $command $stop_args"

run_rc_command "$1"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the inline FreeBSD rc.subr script and the occ commands it invokes, then compare its daemon, user, start, and stop behavior with FreeBSD service conventions. Done means a reviewed FreeBSD start script for fulltextsearch:live and fulltextsearch:stop, with its intended project placement or documentation established.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, shell
Domain
devops, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.