Page MenuHomekolab.org

Guam init script is not setting the HOME variable.
Closed, ResolvedPublic1 Story Points

Description

[root@kolab ~]# rpm -qv guam
guam-0.7.3-4.1.el6.kolab_14.x86_64

The script: /etc/init.d/guam installed by this package is not setting the HOME variable. When using the "service" tool, the script attempt to start guam, but fails with:

[root@kolab ~]# service guam start
Starting guam
erlexec: HOME must be set
..........Unable to start
[root@kolab ~]#

Exporting the variable HOME in the script removes the error and guam is starting:

-----snip-----
start_cmd="$name start"
restart_cmd="$name restart"
stop_cmd="$name stop"
ping_cmd="$name ping"
user=""
export HOME="/root"

get_pid() {
    cat "$pid_file"
-----snip----

Details

Ticket Type
Task

Event Timeline

petersen created this task.Jun 17 2016, 2:56 PM
petersen set the point value for this task to 1.
petersen added projects: Guam, Restricted Project.
vanmeeuwen moved this task from Backlog to Reviewed on the Bug Reports board.Jun 29 2016, 3:45 PM
vanmeeuwen moved this task from Backlog to Doing on the Kolab Enterprise 14 board.
vanmeeuwen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
venc closed this task as Resolved.Jul 8 2016, 11:08 AM
venc claimed this task.
venc added a subscriber: venc.

tested on Kolab Enterprise 14 REL6 -> passed -> resolved

seigo moved this task from Backlog to Done on the Guam board.Dec 13 2016, 2:11 PM