Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29888 - snipsnap startup scripts and directory layout flawed
Summary: snipsnap startup scripts and directory layout flawed
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
Depends on:
Reported: 2003-09-29 05:02 UTC by Karl Trygve Kalleberg (RETIRED)
Modified: 2005-06-29 11:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Revised runscript (,2.01 KB, text/plain)
2003-09-29 05:03 UTC, Karl Trygve Kalleberg (RETIRED)

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-09-29 05:02:27 UTC
There are a few major annoyances with the current snipsnap scripts:
1) It runs as root, which is not necessary.
2) /etc/init.d/snipsnap stop doesn't stop the running daemon
3) The /opt/snipsnap dir contains files modified during execution

Reproducible: Always
Steps to Reproduce:
1. /etc/init.d/snipsnap start
2. Visit localhost:8668/install
3. Make a new application

Actual Results:  
Files are created in /opt/snipsnap (log files), in /opt/snipsnap/application
(datafiles) and /opt/snipsnap/cache (cache files)

Application is run as root.

Expected Results:  

Application should be run as a non-privileged user (i.e. snipsnap).

Log files should have been created in /var/log/snipsnap

Datafiles should be put in /var/lib/snipsnap/applications

Cachefiles should be put in /var/lib/snipsnap/cache

The attached script fixes some of the problems. It assumes
1) snipsnap is started as the user snipsnap
2) /var/log/snipsnap is owned by snipsnap
3) /var/lib/snipsnap and subdirs is owned by snipsnap
4) /var/lib/applications exists
4) /var/lib/lib/snipsnap/snipsnap-installer.war exists
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-09-29 05:03:11 UTC
Created attachment 18470 [details]
Revised runscript

Must be run as user snipsnap!
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2005-06-29 11:01:25 UTC
removed from the tree, until someone steps up and starts maintaining it