Crates.io | solana-airdrop-service |
lib.rs | solana-airdrop-service |
version | 0.1.1 |
source | src |
created_at | 2025-02-07 23:46:58.603996+00 |
updated_at | 2025-02-07 23:55:17.156469+00 |
description | A background service for scheduling Solana airdrops. |
homepage | |
repository | https://github.com/oguzhaniptes/solana-airdrop-service |
max_upload_size | |
id | 1547550 |
size | 19,096 |
Open a terminal and create a systemd service file:
sudo nano /etc/systemd/system/solana-airdrop.service
Add the following configuration:
[Unit]
Description=Solana Airdrop Service
After=network.target
[Service]
ExecStart=/usr/bin/env cargo run --release
WorkingDirectory=/path/to/solana-airdrop-service
Restart=always
User=your-username
[Install]
WantedBy=multi-user.target
Reload the systemd daemon:
sudo systemctl daemon-reload
Enable and start the service:
sudo systemctl enable solana-airdrop
sudo systemctl start solana-airdrop
Check logs:
journalctl -u solana-airdrop -f
Stop the service if needed:
sudo systemctl stop solana-airdrop
cargo build --release
Windows + R
, type taskschd.msc
, and press Enter.solana-airdrop-service.exe
file.To monitor logs:
tail -f /tmp/solana_airdrop.log
If using systemd:
journalctl -u solana-airdrop -f
To view logs in Windows, open the log file:
notepad C:\tmp\solana_airdrop.log
If the C:\tmp
folder does not exist, create it:
mkdir C:\tmp