Git-Auto-Deploy icon indicating copy to clipboard operation
Git-Auto-Deploy copied to clipboard

[CentoS 7] - Error while setting service at startup

Open mateusbadalotti opened this issue 8 years ago • 2 comments

Hi, When setting service on startup via cron or systemd (systemctl), I'm getting this error:

/usr/bin/python: Import by filename is not supported.; '/var/newgen/autodeploy/gitautodeploy' is a package and cannot be directly executed

My installed python version is 2.7.5.

Any info on this problem?

Thank you.

mateusbadalotti avatar Sep 14 '17 16:09 mateusbadalotti

It's a python complaint. Use a script that fires at boot:

Not ideal, but:

#!/bin/bash
cd /usr/src/Git-Auto-Deploy
python -m gitautodeploy --daemon-mode --quiet --config /usr/src/Git-Auto-Deploy/config.json

mjmunger avatar Oct 24 '17 09:10 mjmunger

Thanks @mjmunger gonna try that 👍

mateusbadalotti avatar Oct 25 '17 16:10 mateusbadalotti