Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Directories for Debian package #54

Closed
muuki88 opened this issue Oct 28, 2013 · 3 comments
Closed

Template Directories for Debian package #54

muuki88 opened this issue Oct 28, 2013 · 3 comments

Comments

@muuki88
Copy link
Contributor

muuki88 commented Oct 28, 2013

Play generates its logfiles by default under {application.dir}/logs/application.log which messes up the debian uninstall process as the installation directory is not empty.

Maven jdeb solves this by providing a template datatype.

<data>
   <type>template</type>
   <paths>
       <path>/etc/${artifactId}</path>
       <path>/var/lib/${artifactId}</path>
       <path>/var/log/${artifactId}</path>
       <path>/var/run/${artifactId}</path>
   </paths>
</data>

It would be nice to add this to the linuxPackageMapping options. The API could look like

linuxPackageMapping ++= (packageMappingTemplate(
    "/var/log/" + name,
    "/etc/" + name,
) withPermission("0755")
@jsuereth
Copy link
Member

That's cool. Where do templates go in the .deb configuration?

Also, should we try to add configuration to play so logging goes to /var/log or /var/run?

@muuki88
Copy link
Contributor Author

muuki88 commented Oct 28, 2013

Where do templates go in the .deb configuration?

The debian package system is quite straightforward (to my current point of knowledge). You just create the folder in the directory which is packaged as a .deb file.

/var/log or /var/run

This would be good practices for unix systems. However I have no idea what is concerned as good practices for logging output on windows.

jsuereth added a commit that referenced this issue Nov 8, 2013
task #54: Template Directories for Debian package
@jsuereth
Copy link
Member

jsuereth commented Nov 8, 2013

Marking this as closed. Thanks for the fix!!!!

@jsuereth jsuereth closed this as completed Nov 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants