Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9592

Closed
Open
Created Aug 29, 2015 by Administrator@rootOwner

Init script broken on FreeBSD

Created by: clorichel

I'm sorry to say @drunkard commit https://github.com/gitlabhq/gitlabhq/commit/4c5adb702caef0aebe0d10416521e24e68fa0801 broke the init script on FreeBSD.

See https://github.com/gitlabhq/gitlabhq/blob/master/lib/support/init.d/gitlab#L47

Without -s $shell_path it works like a charm. For sure, yes I replaced shell_path to "/usr/local/bin/bash"

FreeBSD man page for su gives the clue : -s has nothing to do with a shell choice on FreeBSD... see https://www.freebsd.org/cgi/man.cgi?query=su&apropos=0&sektion=0&manpath=FreeBSD+10.2-stable&arch=default&format=html

Without altering https://github.com/gitlabhq/gitlabhq/blob/master/lib/support/init.d/gitlab#L47 to remove the -s $shell_path part, on FreeBSD you get stuck to git shell with nothing starting :

root@host:/usr/home/git/gitlab # service gitlab start
[git@host ~]$
Assignee
Assign to
Time tracking