mozilla-services / hindsight

Hindsight - light weight data processing skeleton
Mozilla Public License 2.0
668 stars 55 forks source link

Debian services #189

Closed giganteous closed 5 years ago

giganteous commented 5 years ago

So, i've done some initial digging to get issue #161 at least fixed for debian. I'm hoping to get some discussion going with interested parties (@deric, and mozilla services team).

It seems to resemble the old structure in the debian package:

Open ends:

$ dpkg-deb -c hindsight_0.15.3_amd64.deb
drwxr-xr-x root/root         0 2019-07-02 15:07 ./etc/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./etc/hindsight/
-rw-r--r-- root/root      1280 2019-07-02 11:49 ./etc/hindsight/hindsight.cfg
drwxr-xr-x root/root         0 2019-07-02 15:07 ./etc/hindsight/load/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./etc/hindsight/load/analysis/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./etc/hindsight/load/input/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./etc/hindsight/load/output/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./etc/hindsight/run/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./etc/hindsight/run/analysis/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./etc/hindsight/run/input/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./etc/hindsight/run/output/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./etc/init.d/
-rwxr-xr-x root/root      3442 2019-07-02 11:49 ./etc/init.d/hindsight
drwxr-xr-x root/root         0 2019-07-02 15:07 ./lib/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./lib/systemd/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./lib/systemd/system/
-rw-r--r-- root/root       273 2019-07-02 11:49 ./lib/systemd/system/hindsight.service
drwxr-xr-x root/root         0 2019-07-02 15:07 ./usr/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./usr/bin/
-rwxr-xr-x root/root     88224 2019-07-02 15:07 ./usr/bin/hindsight
-rwxr-xr-x root/root     88224 2019-07-02 15:07 ./usr/bin/hindsight_cli
-rwxr-xr-x root/root      2203 2019-06-05 09:00 ./usr/bin/hindsight_timer_report.lua
drwxr-xr-x root/root         0 2019-07-02 15:07 ./var/
drwxr-xr-x root/root         0 2019-07-02 15:07 ./var/cache/
drwxr-x--- root/root         0 2019-07-02 15:07 ./var/cache/hindsight/

$ rpm -qlp hindsight-0.15.3-1.x86_64.rpm 
/etc/hindsight
/etc/hindsight/hindsight.cfg
/etc/hindsight/load
/etc/hindsight/load/analysis
/etc/hindsight/load/input
/etc/hindsight/load/output
/etc/hindsight/run
/etc/hindsight/run/analysis
/etc/hindsight/run/input
/etc/hindsight/run/output
/etc/init.d/hindsight
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/hindsight.service
/usr/bin/hindsight
/usr/bin/hindsight_cli
/usr/bin/hindsight_timer_report.lua
/usr/lib/.build-id
/usr/lib/.build-id/47
/usr/lib/.build-id/47/c42e7de5b9e478ed02739a6802126cae846c44
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/097b8d1b03ad22a16121058dfc1d7ace9efc76
/var
/var/cache
/var/cache/hindsight
giganteous commented 5 years ago

with regards to the rpm postinstall script, the docs point to this. But I don't know nothing about which helpers exist on rpm based systems to enable / start services.

giganteous commented 5 years ago

Sorry for the noise. I'll see if I can prepare this better by testing it on an RPM system.