Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.
This repository was archived by the owner on May 10, 2024. It is now read-only.

Services always running as root. #8

@jgainfort

Description

@jgainfort

Was there a reason for running each service as root even though their is an attribute for user and group?

In the templates/default/init.d.erb template file there is these lines

touch $logfile
chown $user $logfile

touch $pidfile
chown $user $pidfile

...

daemon --user=root
<%= @env_options %> $forever start --pidFile $pidfile -l $logfile -p $forever_dir -a -d -c $COMMAND --sourceDir $SOURCE_DIR $SOURCE_FILE $SCRIPT_OPTIONS
RETVAL=$?

where --user is hardcoded as root and doesn't use the $user variable. Also even though the ownership should be changed to the $user variable it is still owned by root.

This is a simple enough change on my end to match what I was looking for but I just want to verify there wasnt a major reason to always set it to root user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions