fritteli / gentoo-overlay

https://gittr.ch/linux/gentoo-overlay
GNU General Public License v2.0
24 stars 7 forks source link

No gitlab-sidekiq.service #5

Closed Kami-no closed 9 years ago

Kami-no commented 9 years ago

File gitlab-sidekiq.service was not created... 2 others - ok.

fritteli commented 9 years ago

So you're saying all three files need to be created in any case? I saw that in the case of using OpenRC, the sidekiq init.d file is only created if the unicorn USE flag is not set, and so I also added this check to the systemd service files: if the unicorn USE flag is set, it will install the unicorn.service, otherwise it will install sidekiq.service.

If this is wrong, then I'll just skip that test in the ebuild and install all files unconditionally. Can you confirm this ist correct?

Kami-no commented 9 years ago

Yep, init script runs 2 services. GitLab devs prefer separate .service files for systemd. Both should run. Third file create a directory in /run (it's in RAM and needs to be created at reboot)

fritteli commented 9 years ago

Okay, I'll fix this. Hang on ...

fritteli commented 9 years ago

Done. Can you test, please?

Kami-no commented 9 years ago

All good

fritteli commented 9 years ago

Great, thanks for the input and for testing :)

Kami-no commented 9 years ago

Checked everything - I'm using flag for unicorns and nginx from gentoo portage (it's without passenger). This is recommended choice by GitLab developers (at least it's written here - https://github.com/cvut/gentoo-overlay/wiki/Installation-guide-for-GitLab-6.x). So I need unicorns but .service file wasn't installed initially ignoring flag.

[?] www-apps/gitlabhq [1] Available versions: (6) (~)6.7.5^m (~)6.8.2^m (~)6.9.2^m (~)7.0.0^m (~)7.1.1^m (~)7.2.0^m (~)7.2.0-r1^m (~)7.2.1^m (~)7.3.0^m (~)7.3.1^m (~)7.3.2^m (~)7.4.2^m (~)7.4.3^m {mysql +postgres +unicorn ELIBC="FreeBSD" RUBY_TARGETS="ruby19 ruby20 ruby21"} Installed versions: 7.5.1(6)^m(18:28:47 27/11/14)(mysql systemd unicorn -postgres ELIBC="-FreeBSD" RUBY_TARGETS="ruby20 -ruby21") Homepage: https://github.com/gitlabhq/gitlabhq Description: GitLab is a free project and repository management application

[1] "fritteli" /var/lib/layman/fritteli

[I] www-servers/nginx Available versions: 1.7.6 ~1.7.7 {aio debug +http +http-cache ipv6 libatomic luajit +pcre pcre-jit rtmp selinux ssl vim-syntax NGINX_MODULES_HTTP="+access addition ajp +auth_basic auth_pam auth_request +autoindex +browser cache_purge +charset dav dav_ext degradation echo +empty_gif fancyindex +fastcgi flv +geo geoip gunzip +gzip gzip_static headers_more image_filter +limit_conn +limit_req lua +map +memcached metrics mogilefs mp4 naxsi perl +proxy push_stream random_index realip +referer +rewrite +scgi secure_link security slowfs_cache spdy +split_clients +ssi sticky stub_status sub upload_progress upstream_check +upstream_ip_hash +userid +uwsgi xslt" NGINX_MODULES_MAIL="imap pop3 smtp" USERLAND="GNU"} Installed versions: 1.7.6(21:44:34 18/10/14)(http http-cache ipv6 pcre ssl vim-syntax -aio -debug -libatomic -luajit -pcre-jit -rtmp -selinux NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip gzip_static limit_conn limit_req map memcached proxy referer rewrite scgi spdy split_clients ssi upstream_ip_hash userid uwsgi -addition -ajp -auth_pam -auth_request -cache_purge -dav -dav_ext -degradation -echo -fancyindex -flv -geoip -gunzip -headers_more -image_filter -lua -metrics -mogilefs -mp4 -naxsi -perl -push_stream -random_index -realip -secure_link -security -slowfs_cache -sticky -stub_status -sub -upload_progress -upstream_check -xslt" NGINX_MODULES_MAIL="-imap -pop3 -smtp" USERLAND="GNU") Homepage: http://nginx.org Description: Robust, small and high performance http and reverse proxy server