Created
November 19, 2022 15:25
-
-
Save MBurchard/e166dc0c3c041c7e6f179efd88385cdb to your computer and use it in GitHub Desktop.
snowflake-proxy service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Snowflake | |
Wants=network.target | |
After=syslog.target network-online.target | |
StartLimitIntervalSec=300 | |
StartLimitBurst=10 | |
[Service] | |
Type=simple | |
ExecStart=/home/snowflake/snowflake/proxy/proxy -verbose | |
Restart=on-failure | |
RestartSec=5 | |
KillMode=process | |
User=snowflake | |
Group=snowflake | |
StandardOutput=append:/var/log/snowflake.log | |
StandardError=append:/var/log/snowflake.log | |
[Install] | |
WantedBy=multi-user.target |
I had some problems with permissions. snowflake hat no permission to access / create the log-file.
Interesting, but when I look at the rights right now, I can't understand it.
drwxr-xr-x 9 root root 4096 18. Nov 15:14 log
-rw-r--r-- 1 root root 205K 19. Nov 23:24 snowflake.log
After this brief analysis, I would say that my snowflake proxy is not running as user snowflake, even though it should be according to the configuration (see above).
I'm confused... the user running the process is snowflake
as it should be.
ps -aux | grep proxy
snowfla+ 3018 1.9 0.8 1306960 66696 ? Ssl Nov18 39:20 /home/snowflake/snowflake/proxy/proxy -verbose
I don't understand why this process is allowed to write to the logfile...
It's running fine with:
pi@pi1:~ $ sudo ls -l /var/log/snowflake
insgesamt 4
-rw------- 1 snowflake snowflake 3871 20. Nov 00:44 snowflake.log
I have put the installation steps into a tiny repository.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had some problems with permissions. snowflake hat no permission to access / create the log-file.