مشکل ربطی به فایل سرویس نداشت. بلکه مشکل این بود که نمیدونم چرا اگه مسیر DataRootDirectory از مقدار پیشفرضش که دایرکتوری جاری است و واسه من دایرکتوری home کاربر بود تغییر کنه، دیگه سایفون نمیتونه به سرورهاش کانکت بشه.
محتوای فایل کانفیگ رو به این تغییر دادم.
{
"___comment": "More options: https://github.com/Psiphon-Labs/psiphon-tunnel-core/blob/master/psiphon/config.go",
"___comment": "DataRootDirectory must exist (otherwise this crashes). If the key is missing, it uses the current directory.",
"LocalHttpProxyPort": 8081,
"DataRootDirectory": "/home/mojtaba",
"LocalSocksProxyPort": 1081,
"PropagationChannelId": "FFFFFFFFFFFFFFFF",
"SponsorId": "FFFFFFFFFFFFFFFF",
"EgressRegion": "GB",
"UpstreamProxyURL": ""
}
و محتوای فایل psiphon.service رو هم تغییر دادم
[Unit]
Description=Psiphon
After=network.target
[Service]
# Type=forking
ExecStart=/usr/bin/psiphon-console-client -config /etc/psiphon/client.config
# ExecStop=/usr/local/bin/nzbget -Q
# Restart=on-failure
User=mojtaba
Group=mojtaba
[Install]
WantedBy=default.target
نمیدونم کلا اصولی کار کردم یا نه ولی با حدس و آزمایش انجام دادم و داره کار میکنه.
اگه پیشنهاد بهتری نبود «حل شد» رو به عنوان اضافه میکنم.
ممنون از شما