nextcloud / nextcloud/fulltextsearch
feature request: Startscript for FreeBSD
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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