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

Not get the correct username when started in crontab #166

@schemacs

Description

@schemacs

crontab entry is as following:

@reboot /usr/local/bin/onedrive-d start >/dev/null
From pi@raspberrypi  Sun Jun 28 04:48:58 2015
Return-Path: <pi@raspberrypi>
X-Original-To: pi
Delivered-To: pi@raspberrypi
Received: by raspberrypi (Postfix, from userid 1000)
    id 66AF940854; Sun, 28 Jun 2015 04:48:58 +0000 (UTC)
From: root@raspberrypi (Cron Daemon)
To: pi@raspberrypi
Subject: Cron <pi@raspberrypi> /usr/local/bin/onedrive-d start >/dev/null
Content-Type: text/plain; charset=UTF-8
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/pi>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=pi>
Message-Id: <20150628044858.66AF940854@raspberrypi>
Date: Sun, 28 Jun 2015 04:48:58 +0000 (UTC)

[2015-06-28 04:48:58,215] CRITICAL: MainThread: cannot find current logged-in user.

The code in ondriver_d/od_glob.py should also check LOGNAME environment key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions