I am configuring a Nginx server in Django. I am in the stage of enabling the /etc/systemd/system/emperor.uwsgi.service but I am getting Failed to enable unit: Access denied error when I am running the command systemctl enable emperor.uwsgi.service
.
Here emperor.uwsgi.service file's content:
[Unit]
Description=uwsgi emperor for projet agricole website
After=network.target
[Service]
User=username
Restart=always
ExecStart=/project_path/my_venv/bin/uwsgi --emperor /project_path/my_venv/vassals --uid www-data --gid www-data
[Install]
WantedBy=multi-user.target
what can I do in order to solve this issue? Please assist.