Coder Social home page Coder Social logo

Comments (3)

acetcom avatar acetcom commented on August 21, 2024

You made a good point!

Basically, I didn't test installations with root privileges and running with user privileges. And also, I realized that It should be considered because binary distribution like debian packaging is goes on in different privileges.

Yes, our logger thread cannot be properly working in this setup as you described. So I have no objection to use logrotate in Linux/FreeBSD. For MacOSX, newsyslog will be used.

I'll start this work from this week to solve this problem for accelerating debian package project in r0.2 branch. Of course, I'll try to solve Issue #4 at the same time.

from open5gs.

acetcom avatar acetcom commented on August 21, 2024

I've updated r0.2 for supporting logrotate. Now, 'sudo make install' and './nextepc-epcd' is properly working.

There are two things that is different from other open sources. Mostly, the followings are for developer. Let me know if it could be a problem to the end-user.

  1. configure.ac
221         systemd_unit_dir="${sysconfdir}/systemd/system/"
         ...
224         logrotate_conf_dir="${sysconfdir}/logrotate.d/"

I used ${sysconfdir} instead of /etc to permit developer to install nextepc with the user-privilege.

  1. support/logrotate/nextepc.in
7    create 640 @current_user@ @current_group@

So, if user installs this package with sudo make install, the above value is set to current user and group. For example, support/logrotate/nextepc file is generated as follows.

7    create 640 acetcom acetcom

I know most open source project generally uses specific user. In our case, it will be a 'nextepc:nextepc'. Yeah!... It could be changed with ./configure --enable_user=acetcom --enable-group=acetcom. However, in my case, I'd just like to use ./configure --prefix=`pwd`/install without any other options.

I'm not sure what is good for us. Just it's my first trial.
Feel free to raise any suggestions.

from open5gs.

acetcom avatar acetcom commented on August 21, 2024

Please, forget about the previous message. I think that above two things are not good for us. In debian package, I made a nextepc user for systemd to execute nextepc's daemon. All things follow the method which is widely used in other open sources .

BTW, I've initially uploaded debian package using LaunchPad PPA. Currently, I've tested only in Ubuntu 16.04 LTS.

sudo add-apt-repository ppa:acetcom/nextepc
sudo apt-get update
sudo apt-get install nextepc

Thank you for your contribution related to debian package.

from open5gs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.