-
Notifications
You must be signed in to change notification settings - Fork 12
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
edgesense_drupal fails silently if run without login shell #101
Comments
the The way to run it for a user without a login shell is to explicitly specify the shell on the command line (like you did), or if scheduled from cron is to use a line like:
directly calling the shell. Your first crontab example though is not running the
|
Your last suggestion to run Note that The cleanest resolution (if getting rid of these special requirements completely is not possible) is probably to find out what environment variables |
Currently, any method to call the
edgesense_drupal
script as a user without a login shell (means if the shell is set to/bin/nologin
or/bin/false
in/etc/passwd
) fails:It happens when ticking "Run During Cron" on the Script Configuration screen (
/admin/edgesense/script-param
) and then running the Drupal cron job under a user without login shell, such as with the following entry in/etc/cron.d/somefile
:It happens when calling the
edgesense_drupal
script directly in a cron job using a user without a login shell, such as with the following entry in/etc/cron.d/somefile
:It happens when running the
edgesense_drupal
command from above directly in a terminal, for example by executing (as root):All of these fail silently, without an error message on the screen or the Edgesense log. However they should not fail, since cron is normally able to run any command as users without login shells (see here – and it works fine with the
web1
user in our deployment for other cron jobs).When specifying a shell explicitly, the above command works successfully, confirming that the problem is the absence of a login shell (and not permission issues etc.):
The text was updated successfully, but these errors were encountered: